-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
47 lines (47 loc) · 1.41 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
module.exports = {
extends: [
'eslint:recommended',
'standard',
'react-app',
'plugin:react/recommended',
'plugin:prettier/recommended'
],
plugins: ['eslint-plugin-prettier', 'simple-import-sort'],
rules: {
'prettier/prettier': 'error',
'no-console': [1, { allow: ['info', 'error'] }],
'no-labels': 0,
'jsx-quotes': [2, 'prefer-single'],
'jsx-a11y/href-no-hash': 'off',
'react/jsx-boolean-value': 'error',
'react/self-closing-comp': 2,
'react/react-in-jsx-scope': 'off',
'react/sort-comp': [
1,
{
order: [
'propTypes',
'defaultProps',
'static-methods',
'lifecycle',
'everything-else',
'render'
]
}
],
'import/prefer-default-export': 'off',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
'': 'never' // this is for solving the error that sometime appears even though we set rules for all extensions we use up above
}
],
'import/no-unresolved': 'off',
'simple-import-sort/imports': 'error'
}
};