-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
41 lines (41 loc) · 1.19 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
"plugins": ["react", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"rules": {
"no-unused-vars": "warn",
"no-param-reassign": 0,
"no-console": "off",
"prettier/prettier": "error",
"func-names": "off",
"object-shorthand": "off",
"no-underscore-dangle": "off",
"react/jsx-one-expression-per-line": "off",
"react/static-property-placement": "off",
"react/state-in-constructor": "off",
"no-nested-ternary": "off",
"react/button-has-type": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/jsx-curly-newline": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/no-access-state-in-setstate": "off",
"react/destructuring-assignment": "warn",
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"no-restricted-syntax": "off",
"react/jsx-closing-bracket-location": "off"
}
}