forked from udacity/reactnd-project-myreads-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
63 lines (63 loc) · 1.38 KB
/
.eslintrc.json
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
61
62
63
{
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"prettier/react",
"plugin:jest/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "prettier", "jest", "sort-imports-es6-autofix"],
"rules": {
"react/jsx-key": "error",
"react/no-unescaped-entities": 0,
"prettier/prettier": "error",
"curly": ["error", "all"],
"eqeqeq": "error",
"indent": "off",
"max-len": [
"error",
{
"code": 100,
"ignoreComments": true,
"ignoreUrls": true
}
],
"no-alert": "error",
"no-console": "off",
"no-debugger": "error",
"no-empty-function": "off",
"no-eval": "error",
"no-extra-parens": "off",
"no-template-curly-in-string": "error",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"require-atomic-updates": "error",
"require-await": "error",
"strict": ["error", "global"],
"sort-imports-es6-autofix/sort-imports-es6": [
2,
{
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}
]
},
"root": true,
"settings": {
"react": {
"version": "detect"
}
}
}