-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (44 loc) · 914 Bytes
/
.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
const path = require('path');
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest/globals": true,
},
"globals": {
"APP_BASE": true
},
"extends": ["airbnb", "eslint:recommended", "plugin:react/recommended"],
"settings": {
"import/resolver": {
"webpack": {
"config": path.join(__dirname, 'config', 'webpack.common.js')
}
}
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"jsx-a11y",
"import",
"jest",
],
"rules": {
"import/no-dynamic-require": "warn",
"react/jsx-props-no-spreading": 0,
"global-require": "warn",
"no-param-reassign": "warn",
"no-unused-vars": "warn",
"no-underscore-dangle": 0,
"no-use-before-define": 0,
}
}