-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.simple.js
45 lines (45 loc) · 1009 Bytes
/
.eslintrc.simple.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
module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
requireConfigFile: false,
babelOptions: {
presets: ['@babel/preset-react']
}
},
env: {
browser: true,
node: true,
es6: true,
},
rules: {
'no-undef': 'error',
// Disable all other rules
'import/no-unresolved': 'off',
'import/order': 'off',
'semi': 'off',
'padding-line-between-statements': 'off',
'react-hooks/exhaustive-deps': 'off',
'comma-dangle': 'off',
'no-unused-vars': 'off'
},
settings: {
'import/resolver': {
alias: {
map: [
['@components', './src/components'],
['@context', './src/context'],
['@hooks', './src/hooks'],
['@styles', './src/styles'],
['@common', './src/common'],
['@utils', './src/utils']
],
extensions: ['.js', '.jsx', '.json']
}
}
}
}