generated from DaveBitter/next-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
80 lines (80 loc) · 1.79 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"env": {
"amd": true,
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"import",
"react"
],
"settings": {
"import/ignore": [
"node_modules",
".png$",
".jpg$"
]
},
"globals": {
"window": true,
"document": true
},
"rules": {
"import/namespace": [
2,
{
"allowComputed": true
}
],
"import/no-duplicates": "off",
"import/no-named-as-default": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"linebreak-style": "off",
"max-len": "off",
"no-console": [
1,
{
"allow": [
"warn",
"error"
]
}
],
"no-use-before-define": 0,
"react/jsx-filename-extension": 0,
"react/forbid-prop-types": "off",
"react/no-array-index-key": "off",
"react/no-danger": "off",
"react/prop-types": 0,
"react/require-default-props": "off",
"semi": 1,
"semi-spacing": 2
},
"overrides": [
{
"files": [
"*.test.js"
],
"rules": {
"react/react-in-jsx-scope": "off",
"no-undef": "off"
}
}
]
}