Skip to content

Commit 93c5c8c

Browse files
committed
Updating dependencies
1 parent 1f8474c commit 93c5c8c

File tree

5 files changed

+529
-527
lines changed

5 files changed

+529
-527
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 193 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
import globals from 'globals';
2+
import js from '@eslint/js';
3+
4+
/** @type {import('eslint').Linter.Config[]} */
5+
export default [
6+
{
7+
...js.configs.recommended,
8+
},
9+
{
10+
languageOptions: {
11+
ecmaVersion: 'latest',
12+
sourceType: 'module'
13+
},
14+
rules: {
15+
"block-scoped-var": 2,
16+
"complexity": [
17+
1,
18+
5
19+
],
20+
"consistent-return": 1,
21+
"curly": [
22+
2,
23+
"all"
24+
],
25+
"dot-notation": 2,
26+
"eqeqeq": 2,
27+
"no-caller": 2,
28+
"no-else-return": 2,
29+
"no-eq-null": 2,
30+
"no-extend-native": 2,
31+
"no-implicit-coercion": 2,
32+
"no-invalid-this": 2,
33+
"no-loop-func": 2,
34+
"no-multi-spaces": 2,
35+
"no-multi-str": 2,
36+
"no-new-func": 2,
37+
"no-new-wrappers": 2,
38+
"no-new": 2,
39+
"no-param-reassign": 2,
40+
"no-unused-expressions": 2,
41+
"no-useless-call": 2,
42+
"no-useless-concat": 2,
43+
"no-with": 2,
44+
"vars-on-top": 2,
45+
"wrap-iife": [2, "any"],
46+
"yoda": [
47+
2,
48+
"never"
49+
],
50+
51+
"no-shadow": 2,
52+
"no-use-before-define": 2,
53+
54+
"callback-return": 2,
55+
"handle-callback-err": 2,
56+
"no-path-concat": 2,
57+
58+
"array-bracket-spacing": [
59+
1,
60+
"always", {
61+
"objectsInArrays": false
62+
}
63+
],
64+
"block-spacing": 1,
65+
"brace-style": 1,
66+
"camelcase": [
67+
1, {
68+
"properties": "never"
69+
}
70+
],
71+
"comma-spacing": [
72+
1, {
73+
"before": false,
74+
"after": true
75+
}
76+
],
77+
"comma-style": [
78+
1,
79+
"last"
80+
],
81+
"computed-property-spacing": [
82+
1,
83+
"never"
84+
],
85+
"consistent-this": [
86+
1,
87+
"self"
88+
],
89+
"eol-last": 1,
90+
"indent": [
91+
2,
92+
4, {
93+
"SwitchCase": 1
94+
}
95+
],
96+
"key-spacing": [
97+
1, {
98+
"beforeColon": false,
99+
"afterColon": true
100+
}
101+
],
102+
"keyword-spacing": 1,
103+
"linebreak-style": [
104+
1,
105+
"unix"
106+
],
107+
"lines-around-comment": [
108+
1, {
109+
"allowBlockStart": true,
110+
"beforeBlockComment": true,
111+
"beforeLineComment": true
112+
}
113+
],
114+
"max-depth": [
115+
1,
116+
4
117+
],
118+
"max-params": [
119+
1,
120+
3
121+
],
122+
"max-statements": [
123+
0,
124+
10
125+
],
126+
"new-cap": 2,
127+
"new-parens": 2,
128+
"padding-line-between-statements": [
129+
"error",
130+
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
131+
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}
132+
],
133+
"no-array-constructor": 2,
134+
"no-bitwise": 1,
135+
"no-lonely-if": 1,
136+
"no-multiple-empty-lines": 1,
137+
"no-new-object": 2,
138+
"no-spaced-func": 1,
139+
"no-trailing-spaces": 1,
140+
"no-unneeded-ternary": 1,
141+
"object-curly-spacing": [
142+
1,
143+
"always"
144+
],
145+
"operator-assignment": [
146+
1,
147+
"always"
148+
],
149+
"operator-linebreak": [
150+
1,
151+
"after"
152+
],
153+
"quote-props": [
154+
1,
155+
"as-needed"
156+
],
157+
"quotes": [
158+
1,
159+
"single"
160+
],
161+
"semi": [
162+
2,
163+
"always"
164+
],
165+
"semi-spacing": [
166+
1, {
167+
"before": false,
168+
"after": true
169+
}
170+
],
171+
"space-before-blocks": [
172+
1,
173+
"always"
174+
],
175+
"space-before-function-paren": [1, { "anonymous": "always", "named": "never" }],
176+
"space-in-parens": [1, "never"],
177+
"space-infix-ops": 1,
178+
"space-unary-ops": 0,
179+
"spaced-comment": [1, "always", { "line": { "exceptions": ["-"] } }]
180+
}
181+
},
182+
{
183+
languageOptions: {
184+
globals: {
185+
...globals.browser,
186+
...globals.node,
187+
...globals.mocha,
188+
}
189+
}
190+
},
191+
];

0 commit comments

Comments
 (0)