-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.js
90 lines (90 loc) · 2.76 KB
/
.eslintrc.js
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es2021: true,
es6: true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module'
},
plugins: ['vue', '@typescript-eslint'],
rules: {
'brace-style': 'error',
'block-scoped-var': 'error',
'camelcase': 'off',
'comma-style': ['error', 'last'],
'comma-dangle': 'off',
'curly': ['error', 'all'],
'dot-notation': 'error',
'eqeqeq': ['error', 'allow-null'],
'eol-last': 'error',
'guard-for-in': 'error',
'indent': ['error', 4],
'keyword-spacing': 'error',
'max-len': ['error', 120],
'new-cap': 'off',
'no-bitwise': 'error',
'no-caller': 'error',
'no-cond-assign': ['error', 'except-parens'],
'no-debugger': 'error',
'no-empty': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-irregular-whitespace': 'error',
'no-iterator': 'error',
'no-loop-func': 'error',
'no-lonely-if': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-multiple-empty-lines': 'error',
'no-multi-str': 'error',
'no-new': 'error',
'no-plusplus': [
'error',
{
'allowForLoopAfterthoughts': true
}
],
'no-proto': 'error',
'no-sequences': 'error',
'no-undef': 'error',
'no-unused-vars': 'error',
'no-with': 'error',
'no-trailing-spaces': 'error',
'one-var': ['error', 'never'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'space-in-parens': ['error', 'never'],
'space-before-blocks': 'error',
'space-before-function-paren': [
'error',
{
'anonymous': 'always',
'named': 'never'
}
],
'space-unary-ops': 'error',
'spaced-comment': 'error',
'valid-typeof': 'error',
'wrap-iife': ['error', 'inside'],
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
},
extends: ['plugin:vue/essential', 'plugin:@typescript-eslint/recommended'],
overrides: [
{
files: ['*.vue'],
rules: {
'@typescript-eslint/no-unused-vars': [2, { 'args': 'none' }]
}
}
]
};