-
Notifications
You must be signed in to change notification settings - Fork 38
/
.eslintrc.js
91 lines (89 loc) · 2.57 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
module.exports = {
'env': {
'browser': true,
'es6': true
},
'extends': [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
'settings': {
'react': {
'pragma': 'React',
'version': 'detect'
}
},
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
},
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaFeatures': {
'jsx': true
},
'ecmaVersion': 2018,
'sourceType': 'module',
'project': './tsconfig.json'
},
'plugins': [
'react',
'@typescript-eslint'
],
'rules': {
'no-undef': 0,
'indent': 0,
'linebreak-style': [ 2, 'unix' ],
'quotes': 0,
'semi': 0,
'no-unused-vars': 0,
'prefer-spread': 0,
'prefer-const': 0,
'switch-colon-spacing': [2, {'after': true, 'before': true}],
'default-case': 2,
'no-spaced-func': 2,
'no-case-declarations': 0,
'no-sparse-arrays': 0,
'space-before-function-paren': 0,
'keyword-spacing': 0,
'key-spacing': 2,
'comma-spacing': 0,
'space-before-blocks': 2,
'arrow-spacing': 2,
'semi-spacing': 2,
'no-irregular-whitespace': 2,
// react jsx
'react/display-name': 0,
'react/jsx-filename-extension': 0,
'react/jsx-first-prop-new-line': 0,
'react/jsx-indent': [ 2, 2 ],
'react/jsx-indent-props': [2, 2],
'react/prop-types': 0,
'react/jsx-key': 2,
// @typescript-eslint
'@typescript-eslint/quotes': [2, 'single'],
'@typescript-eslint/indent': [2, 2],
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/member-delimiter-style': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/no-angle-bracket-type-assertion': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/no-empty-function': 1,
'@typescript-eslint/semi': [2, 'never'],
'@typescript-eslint/no-inferrable-types': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/class-name-casing': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/space-before-function-paren': [2],
'@typescript-eslint/keyword-spacing': 0,
'@typescript-eslint/comma-spacing': 2,
'@typescript-eslint/type-annotation-spacing': 2,
'@typescript-eslint/ban-types': 0
}
}