2021-11-26 11:32:16 +08:00
|
|
|
{
|
|
|
|
"extends": [
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"eslint-config-airbnb-base",
|
|
|
|
"plugin:vue/vue3-recommended",
|
|
|
|
"plugin:prettier/recommended"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
|
|
|
"jest": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"vue",
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"sourceType": "module",
|
|
|
|
"allowImportExportEverywhere": true,
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"import/extensions": [
|
|
|
|
".js",
|
|
|
|
".jsx",
|
|
|
|
".ts",
|
|
|
|
".tsx"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"rules": {
|
2021-11-27 18:50:07 +08:00
|
|
|
"no-console": "off",
|
2021-11-26 11:32:16 +08:00
|
|
|
"no-continue": "off",
|
|
|
|
"no-restricted-syntax": "off",
|
2021-11-27 18:50:07 +08:00
|
|
|
"no-plusplus": "off",
|
|
|
|
"no-param-reassign": "off",
|
|
|
|
"no-shadow": "off",
|
2021-11-26 11:32:16 +08:00
|
|
|
"guard-for-in": "off",
|
2021-11-27 18:50:07 +08:00
|
|
|
|
|
|
|
"import/extensions": "off",
|
|
|
|
"import/no-unresolved": "off",
|
2021-11-26 11:32:16 +08:00
|
|
|
"import/no-extraneous-dependencies": "off",
|
|
|
|
"import/prefer-default-export": "off",
|
2021-11-27 18:50:07 +08:00
|
|
|
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2021-12-13 10:38:26 +08:00
|
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
|
|
"vue/first-attribute-linebreak": 0
|
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["*.vue"],
|
|
|
|
"rules": {
|
|
|
|
"vue/component-name-in-template-casing": [2, "kebab-case"],
|
|
|
|
"vue/require-default-prop": 0,
|
|
|
|
"vue/multi-word-component-names": 0,
|
|
|
|
"vue/no-reserved-props": 0,
|
|
|
|
"vue/no-v-html": 0,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-11-26 11:32:16 +08:00
|
|
|
}
|