forked from deardurham/dear-petition
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
50 lines (50 loc) · 1.16 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
{
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"browser": true
},
"overrides": [
{
"files": [
"**/*.test.js",
"**/*.test.jsx"
],
"env": {
"jest": true
}
}
],
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"prefer-template": "off",
"react/prop-types": "off",
"no-use-before-define": "off",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"no-continue": "off",
"no-prototype-builtins": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-one-expression-per-line": "off",
"react/no-array-index-key": "off",
"react/destructuring-assignment": "off",
"react/no-danger": "off",
"import/no-cycle": "off",
"import/order": "off",
"import/prefer-default-export": "warn",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": ["src/setupTests.js", "**/*.test.js", "**/*.test.jsx"]
}],
"camelcase": "warn",
"consistent-return": "warn"
}
}