-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.15 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
module.exports = {
env: {
commonjs: true,
node: true,
browser: true,
es6: true,
jest: true,
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 9
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
plugins: ['eslint-plugin-react'],
rules: {
indent: 'error',
quotes: [2, 'single', 'avoid-escape'],
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
},
'settings': {
'react': {
'version': 'detect',
},
settings: {
'import/resolver': {
alias: {
map: [
['assets', './src/alias/'],
['axios', '.src/axios/'],
['components', '.src/components'],
['pages', '.src/pages/'],
['state', '.src/state/'],
['consts', '.src/'],
['ContextProvider', '.src/']
],
extensions: ['.js', '.jsx', '.png']
}
}
}
}
};