mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-12-02 11:17:39 +08:00
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
extends: [
|
|
"plugin:vue/vue3-essential",
|
|
"eslint:recommended",
|
|
"@vue/typescript/recommended",
|
|
"@vue/prettier",
|
|
"@vue/prettier/@typescript-eslint"
|
|
],
|
|
parser: "vue-eslint-parser",
|
|
parserOptions: {
|
|
parser: "@typescript-eslint/parser",
|
|
ecmaVersion: 2020,
|
|
sourceType: "module",
|
|
jsxPragma: "React",
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
}
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off", // any
|
|
"no-debugger": "off",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off", // setup()
|
|
"@typescript-eslint/ban-types": "off",
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_"
|
|
}
|
|
],
|
|
"no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_"
|
|
}
|
|
]
|
|
}
|
|
};
|