-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.cjs
51 lines (51 loc) · 1.5 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: ['plugin:vue/vue3-recommended', 'airbnb-base', 'plugin:prettier/recommended'],
plugins: ['@typescript-eslint', 'prettier'],
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
},
settings: {
'import/core-modules': ['@iconify/vue', '@vueuse/core'], // 核心模块,不需要进行路径解析
'import/resolver': {
alias: {
map: [
['@', './src'],
['~', './src'],
],
extensions: ['.ts', '.js', '.jsx', '.json', '.vue'],
},
},
},
rules: {
'prettier/prettier': 'error',
'linebreak-style': 'off',
'no-console': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'no-empty-function': 'off',
'max-len': 'off',
'no-plusplus': 'off',
'no-continue': 'off',
'no-restricted-globals': 'off',
'no-restricted-syntax': 'off',
'no-underscore-dangle': 'off',
'object-curly-newline': 'off',
'arrow-body-style': 'off',
'prefer-destructuring': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'vue/multi-word-component-names': 'off',
},
}