-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
51 lines (51 loc) · 1.04 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
{
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-unused-vars": 1
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"overrides": [
{
"files": ["src/assets/js/**/*.js"],
"env": {
"browser": true,
"es2020": true
}
},
{
"files": [
".eleventy.js",
"webpack.*.js",
"src/filters/**/*.js",
"src/shortcodes/**/*.js",
"src/transforms/**/*.js",
"src/**/*.11tydata.js",
"src/**/*.11ty.js",
"src/data/global/**/*.js"
],
"env": {
"es2020": true,
"node": true
}
},
{
"files": ["src/admin/**/*.js"],
"env": {
"browser": true,
"es2020": true,
"react": true
},
"plugins": ["react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
]
}