Skip to content

Commit bba97a9

Browse files
committed
Update dependencies
1 parent c625c8e commit bba97a9

File tree

5 files changed

+963
-993
lines changed

5 files changed

+963
-993
lines changed

.eslintignore

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

.eslintrc.json

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

eslint.config.mjs

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import js from "@eslint/js";
2+
import stylisticJs from "@stylistic/eslint-plugin-js";
3+
import globals from "globals";
4+
5+
export default [
6+
{
7+
ignores: ["dist/*", "rollup.config.mjs"],
8+
},
9+
{
10+
files: ["src/**/*.js", "eslint.config.mjs"],
11+
languageOptions: {
12+
ecmaVersion: 2018,
13+
sourceType: "module",
14+
globals: {
15+
...globals.browser,
16+
...globals.nodeBuiltin,
17+
},
18+
},
19+
},
20+
js.configs.recommended,
21+
{
22+
rules: {
23+
curly: "error",
24+
eqeqeq: "error",
25+
"dot-notation": "error",
26+
"new-cap": "error",
27+
"no-console": ["error", {allow: ["info", "warn", "error"]}],
28+
"no-unneeded-ternary": "warn",
29+
"no-useless-call": "error",
30+
"no-useless-computed-key": "error",
31+
"no-var": "error",
32+
"object-shorthand": "warn",
33+
"operator-assignment": "warn",
34+
"prefer-arrow-callback": ["error", {allowNamedFunctions: true}],
35+
"prefer-rest-params": "error",
36+
}
37+
},
38+
{
39+
plugins: {
40+
"@stylistic/js": stylisticJs,
41+
},
42+
rules: {
43+
"@stylistic/js/array-bracket-spacing": "error",
44+
"@stylistic/js/arrow-spacing": "error",
45+
"@stylistic/js/block-spacing": ["error", "never"],
46+
"@stylistic/js/brace-style": "error",
47+
"@stylistic/js/comma-spacing": "error",
48+
"@stylistic/js/comma-style": "error",
49+
"@stylistic/js/computed-property-spacing": "error",
50+
"@stylistic/js/dot-location": ["error", "property"],
51+
"@stylistic/js/eol-last": "error",
52+
"@stylistic/js/function-call-spacing": "error",
53+
"@stylistic/js/indent": ["error", 4],
54+
"@stylistic/js/key-spacing": "error",
55+
"@stylistic/js/keyword-spacing": "error",
56+
"@stylistic/js/linebreak-style": "error",
57+
"@stylistic/js/new-parens": "error",
58+
"@stylistic/js/no-extra-semi": "error",
59+
"@stylistic/js/no-multi-spaces": "error",
60+
"@stylistic/js/no-trailing-spaces": "warn",
61+
"@stylistic/js/no-whitespace-before-property": "error",
62+
"@stylistic/js/object-curly-spacing": "error",
63+
"@stylistic/js/operator-linebreak": ["error", "after"],
64+
"@stylistic/js/quotes": "error",
65+
"@stylistic/js/rest-spread-spacing": "error",
66+
"@stylistic/js/semi": "error",
67+
"@stylistic/js/semi-spacing": "error",
68+
"@stylistic/js/semi-style": "error",
69+
"@stylistic/js/space-before-blocks": "error",
70+
"@stylistic/js/space-before-function-paren": ["error", {anonymous: "always", named: "never", asyncArrow: "always"}],
71+
"@stylistic/js/space-in-parens": "error",
72+
"@stylistic/js/space-infix-ops": "error",
73+
"@stylistic/js/space-unary-ops": "error",
74+
"@stylistic/js/spaced-comment": "warn",
75+
"@stylistic/js/switch-colon-spacing": "error",
76+
"@stylistic/js/template-curly-spacing": "error",
77+
},
78+
},
79+
];

0 commit comments

Comments
 (0)