2021-05-28 00:32:34 +08:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true
|
|
|
|
},
|
2021-08-27 14:29:06 +08:00
|
|
|
globals: {
|
|
|
|
defineProps: 'readonly',
|
|
|
|
defineEmits: 'readonly',
|
|
|
|
defineExpose: 'readonly',
|
2021-11-05 22:55:30 +08:00
|
|
|
withDefaults: 'readonly',
|
2021-11-09 23:22:40 +08:00
|
|
|
PROJECT_BUILD_TIME: 'readonly',
|
2021-11-10 00:19:27 +08:00
|
|
|
AMap: 'readonly',
|
2021-11-09 23:49:24 +08:00
|
|
|
BMap: 'readonly'
|
2021-08-27 14:29:06 +08:00
|
|
|
},
|
2021-07-20 10:07:35 +08:00
|
|
|
parser: 'vue-eslint-parser',
|
2021-05-28 00:32:34 +08:00
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 12,
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
sourceType: 'module'
|
|
|
|
},
|
|
|
|
plugins: ['vue', '@typescript-eslint'],
|
2021-07-20 10:07:35 +08:00
|
|
|
extends: [
|
|
|
|
'plugin:vue/vue3-recommended',
|
|
|
|
'airbnb-base',
|
|
|
|
'@vue/typescript/recommended',
|
|
|
|
'plugin:prettier/recommended',
|
|
|
|
'@vue/prettier/@typescript-eslint'
|
|
|
|
],
|
2021-05-28 00:32:34 +08:00
|
|
|
rules: {
|
2021-08-13 14:22:35 +08:00
|
|
|
'no-unused-vars': 'off',
|
2021-08-17 14:59:59 +08:00
|
|
|
'import/extensions': 'off',
|
|
|
|
'import/no-extraneous-dependencies': 'off',
|
2021-05-29 03:02:15 +08:00
|
|
|
'import/no-unresolved': 0,
|
2021-07-20 10:07:35 +08:00
|
|
|
'no-shadow': 0,
|
|
|
|
'import/prefer-default-export': 0,
|
2021-08-27 12:00:09 +08:00
|
|
|
'no-use-before-define': 'off',
|
2021-10-30 10:49:28 +08:00
|
|
|
'vue/multi-word-component-names': 0,
|
2021-11-09 23:49:24 +08:00
|
|
|
'max-classes-per-file': 0,
|
2021-07-20 10:07:35 +08:00
|
|
|
'@typescript-eslint/no-explicit-any': 0,
|
|
|
|
'@typescript-eslint/no-inferrable-types': 0,
|
|
|
|
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
|
|
'@typescript-eslint/ban-types': 'off',
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
2021-08-27 12:00:09 +08:00
|
|
|
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
|
|
|
|
'@typescript-eslint/no-use-before-define': ['error', { classes: true, functions: false, typedefs: false }]
|
2021-05-28 00:32:34 +08:00
|
|
|
}
|
|
|
|
};
|