-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
39 lines (34 loc) · 961 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
36
37
38
39
{
"extends": ["eslint-config-airbnb", "prettier", "plugin:jest/recommended"],
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true,
"jest/globals": true
},
"plugins": ["import", "jsx-a11y", "react", "jest"],
"parserOptions": {
"ecmaFeatures": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
}
},
"rules": {
// disallow use of semicolons instead of ASI
"semi": ["error", "never"],
// disallow dangling commas
"comma-dangle": ["error", "never"],
// allow non-pure components
"react/prefer-stateless-function": ["off"],
// prefer .js over .jsx
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
// allow forbidden propTypes such as array
"react/forbid-prop-types": [0],
// allow prop spreading
"react/jsx-props-no-spreading": [0]
}
}