migrate eslint to flat config (eslint 10)
This commit is contained in:
34
eslint.config.js
Normal file
34
eslint.config.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import pluginVue from "eslint-plugin-vue";
|
||||
import vueTsConfig from "@vue/eslint-config-typescript";
|
||||
import vuePrettierConfig from "@vue/eslint-config-prettier";
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: [
|
||||
"node_modules/**",
|
||||
"dist/**",
|
||||
"coverage/**",
|
||||
"public/**",
|
||||
"p2pix-smart-contracts/**",
|
||||
"vendor/**",
|
||||
"src/generated.ts",
|
||||
],
|
||||
},
|
||||
...pluginVue.configs["flat/essential"],
|
||||
...vueTsConfig(),
|
||||
vuePrettierConfig,
|
||||
{
|
||||
rules: {
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"warn",
|
||||
{
|
||||
argsIgnorePattern: "^_",
|
||||
varsIgnorePattern: "^_",
|
||||
caughtErrorsIgnorePattern: "^_",
|
||||
destructuredArrayIgnorePattern: "^_",
|
||||
},
|
||||
],
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user