-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
60 lines (60 loc) · 2.52 KB
/
index.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
module.exports = {
configs: {
recommended: {
extends: [
'eslint:recommended'
],
rules: {
'no-unused-vars': 'error',
'@typescript-eslint/no-explicit-any': 0,
'react/prop-types': 0,
'react/no-find-dom-node': 0,
'@typescript-eslint/explicit-function-return-type': 'off',
'quotes': ['error', 'single'],
'no-console': 'error',
'no-debugger': 'error',
'no-alert': 'error',
'indent': ['error', 4, { 'SwitchCase': 1 }],
'semi': ['error', 'always'],
'no-caller': 'error',
'eqeqeq': ['error', 'always'],
'linebreak-style': ['error', 'unix'],
'comma-style': ['error', 'last'],
'no-var': 'error',
'keyword-spacing': ['error', { 'before': true }],
'key-spacing': ['error', { 'beforeColon': false }],
'no-useless-constructor': 'error',
'curly': 'error',
'no-empty-function': 'error',
'no-extend-native': 'error',
'no-multi-spaces': 'error',
'no-multi-str': 'error',
'no-new-wrappers': 'error',
'no-proto': 'error',
'no-sequences': 'error',
'no-useless-return': 'error',
'no-useless-call': 'error',
'radix': ['error', 'always'],
'array-bracket-spacing': ['error', 'never'],
'block-spacing': 'error',
'comma-dangle': ['error', 'never'],
'computed-property-spacing': ['error', 'never'],
'eol-last': ['error', 'always'],
'jsx-quotes': ['error', 'prefer-single'],
'max-len': ['error', { 'code': 120, 'tabWidth': 4 }],
'no-bitwise': 'error',
'no-tabs': 'error',
'no-trailing-spaces': 'error',
'object-curly-spacing': ['error', 'always'],
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: 'directive', next: '*' },
{ blankLine: 'any', prev: 'directive', next: 'directive' }
],
'arrow-parens': ['error', 'always'],
'arrow-spacing': 'error',
'brace-style': ['error', 'stroustrup']
}
}
}
};