forked from cloudflare/speedtest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (41 loc) · 845 Bytes
/
.eslintrc
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
{
"env": {
"browser": true,
"node": true,
"es2022": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 13
},
"plugins": [
"compat",
"import",
"json",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:compat/recommended",
"plugin:import/recommended",
"plugin:json/recommended"
],
"rules": {
"no-prototype-builtins": "off",
"default-case": "error",
"eqeqeq": "error",
"guard-for-in": "error",
"no-self-compare": "error",
"no-void": "error",
"radix": "error",
"wrap-iife": ["error", "inside"],
"import/first": "warn",
"import/no-absolute-path": "error",
"import/no-deprecated": "warn",
"import/no-mutable-exports": "warn",
"prettier/prettier": "error"
},
"settings": {
"targets": ">= 5%"
}
}