-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
108 lines (108 loc) · 2.89 KB
/
.eslintrc.cjs
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
module.exports = {
root: true,
extends: ["eslint:recommended", "prettier"],
plugins: ["svelte3"],
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }],
parserOptions: {
sourceType: "module",
ecmaVersion: 2021,
},
env: {
browser: true,
es2021: true,
node: true,
},
rules: {
"no-console": 1,
"no-debugger": 2,
"no-alert": 2,
"no-constant-condition": 2,
"no-cond-assign": [2, "always"],
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-ex-assign": 2,
"no-extra-semi": 2,
"no-extra-boolean-cast": 2,
"no-func-assign": 2,
"no-inner-declarations": [2, "both"],
"no-unexpected-multiline": 2,
semi: [2, "always", { omitLastInOneLineBlock: true }],
"no-unreachable": 2,
"no-eval": 2,
"no-implied-eval": 2,
"no-lonely-if": 1,
"array-callback-return": 1,
"block-scoped-var": 1,
eqeqeq: [2, "smart"],
"no-empty-pattern": 1,
"no-extend-native": 1,
"no-implicit-coercion": 1,
"no-iterator": 2,
"no-lone-blocks": 2,
"no-loop-func": 1,
"no-multi-spaces": 1,
"no-multi-str": 1,
"no-native-reassign": 2,
"no-new-func": 1,
"no-new-wrappers": 1,
"no-new": 1,
"no-param-reassign": [2, { props: false }],
"no-process-env": 0,
"no-proto": 1,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-assign": 1,
"no-self-compare": 2,
"no-sequences": 2,
"no-unmodified-loop-condition": 1,
"no-unused-expressions": [
2,
{ allowShortCircuit: true, allowTernary: true },
],
"no-useless-concat": 2,
"no-void": 1,
"no-with": 1,
yoda: [1, "never"],
"no-catch-shadow": 1,
"no-shadow-restricted-names": 1,
"no-shadow": 1,
"no-undef": [2, { typeof: true }],
"block-spacing": [2, "always"],
camelcase: [1, { properties: "always" }],
"comma-spacing": [2, { before: false, after: true }],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"jsx-quotes": [1, "prefer-double"],
quotes: [1, "double"],
"keyword-spacing": [2, { before: true, after: true }],
"max-depth": [1, 5],
"max-len": [2, { code: 150, tabWidth: 4, ignoreUrls: true }],
"max-nested-callbacks": [2, 3],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-multiple-empty-lines": [2, { max: 2, maxEOF: 1, maxBOF: 0 }],
"no-nested-ternary": 1,
"no-ternary": 0,
"no-trailing-spaces": [2, { skipBlankLines: true }],
"no-unneeded-ternary": 0,
"one-var": [2, "never"],
"operator-assignment": [1, "never"],
"padded-blocks": [2, "never"],
"quote-props": [2, "consistent"],
"semi-spacing": [2, { before: false, after: true }],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"spaced-comment": [2, "always"],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"no-var": 2,
"object-shorthand": 1,
"prefer-arrow-callback": 1,
"prefer-const": 2,
"prefer-template": 2,
"template-curly-spacing": [2, "never"],
"no-unused-vars": 1,
},
};