-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
56 lines (56 loc) · 1.35 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
module.exports = {
root: true,
env: {
browser: true,
jest: true,
node: true,
},
extends: [
'xo',
'xo-space/esnext',
'xo-react/space',
'xo-typescript',
],
parser: '@typescript-eslint/parser',
plugins: [
'react',
'react-hooks',
'simple-import-sort',
'@typescript-eslint',
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/indent': ['error', 2, { SwitchCase: 1 }],
'@typescript-eslint/semi': 'off',
'capitalized-comments': 'off',
'comma-dangle': ['error', 'always-multiline'],
'complexity': 'off',
'no-warning-comments': 'off',
'object-curly-spacing': ['error', 'always'],
'operator-linebreak': ['error', 'before'],
'react/jsx-pascal-case': 'off',
'react/jsx-tag-spacing': 'off',
'react/prop-types': 'off',
'semi': ['error', 'never'],
'simple-import-sort/sort': 'error',
'sort-imports': 'off',
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
},
},
],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {},
},
},
};