-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc
54 lines (54 loc) · 1.08 KB
/
.eslintrc
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
{
"plugins": [
"angular",
"jest-dom",
"react",
"react-hooks"
],
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"settings": {
"react": {
"version": "detect",
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"],
"moduleDirectory": ["src/app", "node_modules"],
},
},
},
"env": {
"browser": true,
"jasmine": true,
"amd": true,
"es6": true,
"jest": true,
},
"globals": {
"angular": true,
"inject": true,
"module": true,
"$": true,
"$$": true,
"browser": true,
},
"parser": "babel-eslint",
"rules": {
"max-len": ["off"],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"import/order": ["error", {"newlines-between": "always"}],
"react/forbid-prop-types": ["warn"],
},
"overrides": [
{
"files": ["*.jsx", "*.spec.js", "jest.config.js", "karma.conf.js", "wdio.conf.js", "webpack.config.js"],
"rules": {
"no-console": ["off"],
},
},
],
}