-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
70 lines (69 loc) · 1.66 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
const path = require('path')
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'standard',
'standard-react',
'prettier/standard',
'prettier/react'
],
plugins: ['prettier', 'react-hooks', '@typescript-eslint'],
env: {
node: true
},
parserOptions: {
ecmaVersion: 2020,
ecmaFeatures: {
legacyDecorators: true,
jsx: true
}
},
rules: {
'space-before-function-paren': 0,
'react/prop-types': 0,
'react/jsx-handler-names': 0,
'react/jsx-fragments': 0,
'react/no-unused-prop-types': 0,
'import/export': 0,
'import/order': [
2,
{ groups: ['parent', 'sibling'], 'newlines-between': 'always' }
],
'prefer-promise-reject-errors': 'off',
'react/jsx-filename-extension': 'off',
'react/forbid-prop-types': 'off',
'import/prefer-default-export': 'off',
'no-plusplus': 'off',
'no-return-assign': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
'no-continue': 'off',
'func-names': 'off',
'no-bitwise': 'off',
'consistent-return': 'off',
'import/no-webpack-loader-syntax': 'off',
'no-restricted-globals': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/jsx-curly-newline': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'func-call-spacing': 'off'
},
settings: {
react: {
version: '16'
},
'import/resolver': {
alias: {
map: [
['fiber', './src'],
['test', './test']
]
},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx']
}
}
}
}