forked from quoid/userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
82 lines (82 loc) · 2.47 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
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"env": {
"browser": true,
"node": true,
"es2021": true,
"es2022": true,
"webextensions": true
},
"extends": ["eslint:recommended", "airbnb-base"],
"globals": {
"_browser": "writable",
"browser": "readonly"
},
"ignorePatterns": [
"/etc",
"build",
"dist",
"node_modules"
],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["svelte3"],
"rules": {
"array-callback-return": "off",
"arrow-body-style": "off",
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "never"],
"consistent-return": "off",
"default-case": "off",
"eqeqeq": ["error", "smart"],
"global-require": "off",
"guard-for-in": "warn",
"import/extensions": "off",
"import/first": "off",
"import/no-mutable-exports": "off",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true
}],
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"indent": ["error", 4, {"SwitchCase": 1}],
"max-len": "off",
"no-alert":"off",
"no-await-in-loop":"warn",
"no-confusing-arrow": ["warn", {
"allowParens": true,
"onlyOneSimpleParam": true
}],
"no-console": ["warn", {"allow": ["info", "warn", "error"]}],
"no-continue": "off",
"no-else-return": ["error", {"allowElseIf": true}],
"no-nested-ternary": "off",
"no-param-reassign": ["warn", { "props": false }],
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-return-assign": "off",
"no-underscore-dangle":"off",
"no-unused-expressions": "off",
"no-use-before-define": ["error", {
"functions": false,
"classes": true,
"variables": true,
"allowNamedExports": false
}],
"object-curly-newline": ["error", {"consistent": true}],
"object-curly-spacing": ["error", "never"],
"one-var": "off",
"one-var-declaration-per-line": "off",
"prefer-destructuring": "off",
"prefer-object-spread": "warn",
"quotes": ["error", "double"],
"import/no-namespace": "warn"
}
}