mirror of
https://git.oceanpay.cc/danial/kami_apple_exchage.git
synced 2025-12-18 22:29:09 +00:00
- 在 database.py 中新增 final_order_url 字段以存储最终订单链接,并添加更新方法 - 修改 simple_app.py 和 test.py,确保在处理订单时更新 final_order_url - 更新前端组件,展示 final_order_url,并添加工具提示以改善用户体验 - 调整 run.bat 文件以使用虚拟环境中的 Python 解释器 - 更新 eslint 配置,忽略特定配置文件
41 lines
1007 B
JavaScript
41 lines
1007 B
JavaScript
import { FlatCompat } from "@eslint/eslintrc";
|
|
import typescriptParser from "@typescript-eslint/parser";
|
|
import typescriptPlugin from "@typescript-eslint/eslint-plugin";
|
|
|
|
const compat = new FlatCompat({
|
|
baseDirectory: import.meta.dirname,
|
|
});
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
"tailwind.config.js",
|
|
"postcss.config.js",
|
|
"next.config.js",
|
|
]
|
|
},
|
|
...compat.extends("next/core-web-vitals"),
|
|
{
|
|
files: ["**/*.{js,jsx,ts,tsx}"],
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: "module",
|
|
parser: typescriptParser,
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: "module",
|
|
project: "./tsconfig.json",
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": typescriptPlugin,
|
|
},
|
|
rules: {
|
|
...typescriptPlugin.configs.recommended.rules,
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-empty-object-type": "warn",
|
|
},
|
|
},
|
|
];
|