-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
60 lines (60 loc) · 1.28 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
55
56
57
58
59
60
{
"root": true,
"plugins": [
"react",
"jest",
"import"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"react-app",
"prettier"
],
"parserOptions": {
"sourceType": "module"
},
"settings": {
"react": {
"pragma": "React",
"version": "15.0"
},
"import/resolver": {
"node": { "paths": ["apps/"] }
}
},
"rules": {
"comma-dangle": 0,
"constructor-super": "error",
"dot-notation": 1,
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"linebreak-style": ["error", "unix"],
"no-case-declarations": 0,
"no-console": 1,
"no-mixed-spaces-and-tabs": 1,
"object-shorthand": [1, "consistent"],
"prefer-const": "warn",
"quote-props": [2, "as-needed", { "numbers": true }],
"quotes": [2, "single"],
"semi": [2, "always"],
"import/first": 0,
"no-unused-expressions": "error",
"no-unused-vars": 2,
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }]
},
"env": {
"es6": true,
"browser": true,
"commonjs": true
},
"globals": {
"session": true,
"arguments": true,
"process": true,
"__dirname": true,
"global": true,
"spyOn": true
}
}