generated from nyc-cto/starter-pack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
35 lines (35 loc) · 992 Bytes
/
.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
{
"extends": ["airbnb"],
"plugins": ["import"],
"env": {
"node": true,
"es6": true,
"browser": true
},
"rules": {
"react/jsx-props-no-spreading": "off", // allows prop spreading (used primarily in src/components/link.jsx)
"react/prop-types": "off", // does not require props validation in a React component definition
"no-nested-ternary": "off", // allows nested ternaries
"no-console": "off",
"import/order": [ // order used for imports
"error",
{
"groups": ["builtin", "external", "internal"], // group types of imports
// react import comes before anything
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}