-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
38 lines (38 loc) · 1.01 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
module.exports = {
// extends: 'airbnb',
extends: ['airbnb', 'prettier', 'prettier/react'],
plugins: ['prettier'],
settings: {
'import/resolver': {
alias: [
['components', './src/components'],
['constants', './src/constants'],
['context', './src/context'],
['graphql', './src/graphql'],
['pages', './src/pages'],
['services', './src/services'],
['theme', './src/theme'],
['utils', './src/utils'],
],
},
},
rules: {
'no-unused-vars': 'warn',
'prettier/prettier': [
'error',
{
trailingComma: 'all',
semi: false,
singleQuote: true,
printWidth: 120,
},
],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/jsx-curly-brace-presence': 'off',
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
'no-use-before-define': 'off',
// 'react-hooks/rules-of-hooks': 'error',
// 'react-hooks/exhaustive-deps': 'warn',
},
}