-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
36 lines (35 loc) · 935 Bytes
/
.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
{
"env": {
"browser": true,
"webextensions": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:security/recommended"
],
"plugins": [
"chrome-extension",
"react",
"react-hooks",
"security",
"import"
],
"rules": {
"no-console": "warn",
"no-unused-vars": "error",
"consistent-return": "error",
"eqeqeq": ["error", "always"],
"no-var": "error",
"prefer-const": "error",
"semi": ["error", "always"],
"quotes": ["error", "single"],
"chrome-extension/no-unchecked-runtime-last-error": "warn",
"chrome-extension/no-unsafe-eval": "error",
"chrome-extension/no-unsafe-innerhtml": "error",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"security/detect-non-literal-fs-filename": "warn"
}
}