-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.51 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
// prettier-ignore
module.exports = {
'env': {
'browser': true,
'es6': true,
'node': true
},
'extends': ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended'],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaFeatures': {
'jsx': true
},
'ecmaVersion': 9,
'sourceType': 'module'
},
'plugins': ['simple-import-sort', 'react', '@typescript-eslint'],
'rules': {
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-use-before-define': 'error',
'camelcase': 'error',
'eqeqeq': 'error',
'max-lines': ['warn', 200],
'no-console': 'warn',
'no-trailing-spaces': 'error',
'no-unused-vars': ['error', {
'argsIgnorePattern': '^(props)$',
'varsIgnorePattern': 'React'
}],
'no-var': 'error',
'react/boolean-prop-naming': 'error',
'react/jsx-key': 'error',
'react/no-unused-prop-types': 'error',
'react/no-unused-state': 'error',
'react/prefer-stateless-function': 'error',
'react/prop-types': 'off',
'require-await': 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error'
},
'settings': {
'react': {
'version': 'detect'
}
}
};