-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
107 lines (107 loc) · 3.5 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
extends: ['eslint:recommended', 'plugin:vue/base', 'plugin:@typescript-eslint/recommended'],
plugins: ['@typescript-eslint'],
parser: "vue-eslint-parser",
parserOptions: {
parser: {
ts: '@typescript-eslint/parser',
js: 'espree',
},
},
rules: {
"no-undef": "off",
"indent": "off",
"no-useless-escape": "off",
"@typescript-eslint/indent": ["error", 2],
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'guard-for-in': 'off',
'no-return-assign': 'off',
'no-cond-assign': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'object-curly-spacing': [ 'error', 'always' ],
'no-unused-vars': [ 'error', { 'args': 'none' } ],
'vue/max-attributes-per-line': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'global-require': 'off',
'template-curly-spacing': 'off',
'no-irregular-whitespace': 'error',
'dot-location': 'error',
'no-extra-semi': 'error',
'no-obj-calls': 'error',
'no-empty': 'error',
'no-duplicate-case': 'error',
'no-compare-neg-zero': 'error',
curly: [ 'error', 'multi-line' ],
'no-empty-pattern': 'error',
'no-multi-spaces': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-throw-literal': 'error',
'no-useless-return': 'error',
'no-use-before-define': 'off',
'array-bracket-spacing': [ 'error', 'always' ],
'block-spacing': 'error',
'brace-style': 'error',
'comma-dangle': [ 'error', 'always-multiline' ],
'computed-property-spacing': [ 'error', 'always' ],
'func-call-spacing': [ 'error', 'always' ],
'function-paren-newline': [ 'error', 'never' ],
'key-spacing': [ 'error', { beforeColon: false } ],
'new-cap': 'off',
'newline-per-chained-call': [ 'error', { ignoreChainWithDepth: 2 } ],
'no-mixed-spaces-and-tabs': [ 'error', 'smart-tabs' ],
'no-trailing-spaces': 'error',
'no-whitespace-before-property': 'error',
quotes: [ 'error', 'single' ],
'space-before-function-paren': 'error',
'space-in-parens': [ 'error', 'always' ],
'space-infix-ops': 'error',
'no-const-assign': 'error',
'no-duplicate-imports': 'error',
'no-var': 'error',
'prefer-template': 'error',
'rest-spread-spacing': [ 'error', 'never' ],
'padding-line-between-statements': [ 'error', { blankLine: 'always', prev: '*', next: '*' } ],
'padded-blocks': [ 'error', 'always' ],
'space-unary-ops': [
2,
{
words: true,
nonwords: false,
overrides: {
new: false,
'++': true,
},
},
],
'comma-spacing': [ 'error', { before: false, after: true } ],
'lines-around-comment': [
'error',
{
beforeBlockComment: true,
afterBlockComment: true,
beforeLineComment: true,
afterLineComment: true,
},
],
'lines-between-class-members': [ 'error', 'always', { exceptAfterSingleLine: false } ],
'no-await-in-loop': 'off',
'no-useless-concat': 'off',
'no-fallthrough': 'off',
'no-case-declarations': 'off',
'no-useless-catch': 'off',
'semi': [ 'error', 'always' ],
'no-console': 'off',
'@typescript-eslint/camelcase': 'off',
}
};