forked from goodjoblife/GoodJobShare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
59 lines (58 loc) · 1.76 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
const path = require('path');
module.exports = {
extends: ['react-app', 'prettier', 'prettier/flowtype', 'prettier/react'],
plugins: ['prettier', 'flowtype', 'react-hooks'],
rules: {
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': ['error', 'always-multiline'],
'max-len': [
'error',
199,
{
ignorePattern: ' // eslint-disable-line ',
},
],
'react/prefer-stateless-function': 'off',
'no-underscore-dangle': 'off',
'no-console': 'off',
'import/no-extraneous-dependencies': 'error',
'react/forbid-prop-types': 'off',
'react/jsx-filename-extension': [
'error',
{
extensions: ['.js'],
},
],
'jsx-a11y/no-static-element-interactions': 'off',
'react/require-default-props': 'off',
'react/no-array-index-key': 'off',
'no-unused-vars': 'error',
'react/no-deprecated': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'prettier/prettier': 'error',
'no-use-before-define': 'error',
},
settings: {
'import/resolver': {
webpack: {
config: {
resolve: {
alias: {
actions: path.resolve('./src/actions'),
apis: path.resolve('./src/apis'),
common: path.resolve('./src/components/common'),
images: path.resolve('./src/components/images'),
constants: path.resolve('./src/constants'),
contexts: path.resolve('./src/contexts'),
graphql: path.resolve('./src/graphql'),
hooks: path.resolve('./src/hooks'),
selectors: path.resolve('./src/selectors'),
utils: path.resolve('./src/utils'),
},
},
},
},
},
},
};