-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc.js
55 lines (55 loc) · 1.31 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:react/recommended", "airbnb"],
overrides: [],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react"],
globals: {
navigator: true,
event: true,
window: true,
document: true,
it: true,
xit: true,
xdescribe: true,
describe: true,
afterEach: true,
expect: true,
fetch: true,
FormData: true,
importScripts: true,
workbox: true,
Image: true,
self: true,
caches: true,
},
rules: {
"no-console": "off",
"consistent-return": [0, { treatUndefinedAsUnspecified: true }],
"no-extraneous-dependencies": "off",
"no-plusplus": "off",
"no-param-reassign": "off",
"no-shadow": "off",
camelcase: "off",
"prefer-template": "off",
"object-curly-newline": "off",
"arrow-body-style": "off",
"import/no-named-as-default": "off",
"comma-dangle": 1,
"max-len": "off",
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": "off",
"react/jsx-boolean-value": 0,
"jsx-a11y/href-no-hash": "off",
"react/jsx-filename-extension": 0,
"react/forbid-prop-types": 0,
"react/prefer-stateless-function": "off",
"no-restricted-globals": "off",
},
};