forked from Tetrax-10/Spicetify-Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.28 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "import"],
"settings": {
"react": {
"version": "17.0.2" // Spicetify.React.version
}
},
"globals": {
"Spicetify": "readonly"
},
"rules": {
"quotes": ["warn", "double"],
"no-console": ["warn", { "allow": ["error"] }],
"no-unused-vars": "warn",
"no-alert": "error",
"no-undef": "error",
"object-shorthand": ["warn", "never"],
"no-underscore-dangle": "error",
"camelcase": ["error", { "allow": ["color_scheme"] }],
"no-eval": "error",
"import/no-useless-path-segments": ["error", { "noUselessIndex": true }],
"no-case-declarations": "off",
"react/prop-types": 0,
"react/no-unescaped-entities": 0,
"react/jsx-key": "off",
"no-prototype-builtins": "off",
"no-inner-declarations": "off",
"no-extra-semi": "off",
"react/jsx-no-undef": [
"error",
{
"allowGlobals": true
}
]
}
}