-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (38 loc) · 963 Bytes
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
jest: true,
es6: true
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: "module"
},
extends: ["airbnb", "plugin:prettier/recommended"],
plugins: ["react", "babel"],
parser: "babel-eslint",
rules: {
"class-methods-use-this": 0,
"import/no-named-as-default": 0,
"react/jsx-filename-extension": [
"error",
{
extensions: [".js", ".jsx"]
}
],
"react/forbid-prop-types": ["error", { forbid: ["any", "array"] }],
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": "off",
"no-shadow": "off",
"react/destructuring-assignment": "off",
"spaced-comment": "off",
radix: ["error", "as-needed"],
"import/prefer-default-export": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"no-cond-assign": [ 2, "except-parens" ]
}
};