mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-09 14:40:27 +08:00
fix: 迁移typescript-eslint已弃用的tseslint.config配置方式
This commit is contained in:
@@ -72,8 +72,11 @@ export default defineConfig([
|
||||
]
|
||||
}
|
||||
},
|
||||
...tseslint.config({
|
||||
extends: [...tseslint.configs.recommended],
|
||||
...tseslint.configs.recommended.map(config => ({
|
||||
...config,
|
||||
files: ["**/*.?([cm])ts", "**/*.?([cm])tsx"]
|
||||
})),
|
||||
{
|
||||
files: ["**/*.?([cm])ts", "**/*.?([cm])tsx"],
|
||||
rules: {
|
||||
"@typescript-eslint/no-redeclare": "error",
|
||||
@@ -102,7 +105,7 @@ export default defineConfig([
|
||||
}
|
||||
]
|
||||
}
|
||||
}),
|
||||
},
|
||||
{
|
||||
files: ["**/*.d.ts"],
|
||||
rules: {
|
||||
|
||||
Reference in New Issue
Block a user