-
Notifications
You must be signed in to change notification settings - Fork 34
/
.eslintrc.js
58 lines (57 loc) · 1.44 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
// document: https://eslint.org/docs/user-guide/configuring
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
browser: true,
node: true,
},
rules: {
'array-callback-return': [0],
'comma-dangle': [0],
'no-var': [0],
'no-trailing-spaces': [0],
'space-before-blocks': [0],
// 'prefer-const': [1],
'prefer-arrow-callback': [0],
'new-cap': [0],
'quote-props': [0],
'valid-jsdoc': [0],
'prefer-spread': [0],
'keyword-space': [0],
'dot-notation': [0],
'prefer-rest-params': [0],
'padded-blocks': [0],
'no-undef': [0],
'no-multi-spaces': [0],
'no-unused-expressions': [0],
'no-unreachable': [0],
'no-extra-semi': [0],
'no-empty': [0],
'no-array-constructor': [0],
quotes: [0],
'no-extra-parens': [0],
'space-in-parens': [0],
'wrap-iife': [0],
'object-shorthand': [0],
'func-call-spacing': [0],
eqeqeq: [0],
indent: [0],
semi: [0],
'no-unused-vars': [
2,
{
vars: 'local',
args: 'none',
},
],
'no-mixed-spaces-and-tabs': [0],
'no-console': [0],
'space-before-function-paren': [0],
'spaced-comment': [0],
'no-alert': [0],
'linebreak-style': ['off', 'windows'],
'@typescript-eslint/no-shadow': ['error'],
'@typescript-eslint/no-unused-vars': ['error'],
},
};