-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
43 lines (43 loc) · 1022 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
39
40
41
42
43
module.exports = {
env: {
browser: true,
node: true,
commonjs: true,
es6: true
},
parser: "babel-eslint",
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended"
],
parserOptions: {
ecmaVersion: 7,
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
sourceType: "module"
},
plugins: ["react", "prettier", "jsx-a11y"],
globals: {
React: true,
it: true,
expect: true
},
rules: {
"prettier/prettier": "warn",
"react/react-in-jsx-scope": "warn",
"react/prop-types": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-a11y/accessible-emoji": "warn",
"react/jsx-no-target-blank": "warn",
"react/no-unescaped-entities": "warn",
"react/no-find-dom-node": "warn",
"no-console": "warn",
"no-unused-vars": "warn",
"react/display-name": "warn"
}
};