-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
69 lines (69 loc) · 1.76 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"extends": [
"airbnb",
"prettier"
],
"plugins": [
"react",
"prettier",
"react-hooks",
"jsx-a11y",
"react-refresh",
"import"
],
"overrides": [],
"parser": "",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"settings": {
"react": {
"version": "18.2"
}
},
"rules": {
// » GENERAL
"strict": [2,"global"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-param-reassign": ["error", { "props": false }],
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": [ "error", {
"devDependencies": [
"**/*.jsx",
"configurations/forge/makers/*.js",
"configurations/forge/publisher/*.js",
"tools/**/*.js",
"test/**/*.js",
"electron/main/index.js",
"electron/preload/index.js",
"electron/system/**/*.js",
"forge.config.js",
"vite.config.js"
]}
],
"import/no-unresolved": [2, { "ignore": ["^firebase-admin/"] }],
// » PRETTIER
"prettier/prettier": ["error", {
"singleQuote": true,
"printWidth": 100,
"trailingComma": "all"
}],
// » REACT
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": [0, { "html": "enforce", "custom": "ignore", "exceptions": ["img"] }],
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
// » REACT HOOKS
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// » REACT REFRESH
"react-refresh/only-export-components": "warn"
}
}