-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
40 lines (40 loc) · 1.08 KB
/
.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
40
{
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"prettier",
"prettier/react"
],
"plugins": ["import", "react", "prettier", "jest"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/display-name": "off",
"prettier/prettier": ["warn"],
"import/no-extraneous-dependencies": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"import/no-named-as-default": "off",
"react/forbid-prop-types": ["off"],
"react/prop-types": ["warn"],
"react/jsx-no-bind": ["off"],
"react/jsx-indent": ["off"],
"react/jsx-indent-props": ["off"],
"react/jsx-filename-extension": ["off"]
},
"globals": {
"expect": true
}
}