Skip to content

Commit bf7bfd9

Browse files
committed
Update dependencies
1 parent 51285b3 commit bf7bfd9

File tree

5 files changed

+2421
-2718
lines changed

5 files changed

+2421
-2718
lines changed

.eslintrc.json

-35
This file was deleted.

build/build.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import stylistic from "@stylistic/eslint-plugin";
4+
import importPlugin from "eslint-plugin-import";
5+
6+
export default [
7+
js.configs.recommended,
8+
importPlugin.flatConfigs.recommended,
9+
stylistic.configs.customize({
10+
arrowParens: true,
11+
braceStyle: "1tbs",
12+
commaDangle: "never",
13+
flat: true,
14+
jsx: false,
15+
quotes: "double",
16+
semi: true
17+
}),
18+
{
19+
languageOptions: {
20+
ecmaVersion: "latest",
21+
globals: {
22+
...globals.node
23+
}
24+
},
25+
settings: {
26+
"import/resolver": {
27+
node: {}
28+
}
29+
},
30+
rules: {
31+
"no-unused-vars": ["error", { caughtErrorsIgnorePattern: "^_" }],
32+
"no-empty-function": "off",
33+
"no-console": ["error"],
34+
35+
// Imports
36+
"import/extensions": ["error", "ignorePackages"],
37+
"import/newline-after-import": ["error", { count: 2, exactCount: false, considerComments: true }], // Doesn't respect @import
38+
39+
// Stylistic
40+
"@stylistic/yield-star-spacing": ["error", "after"],
41+
"@stylistic/multiline-ternary": "off",
42+
"@stylistic/no-multiple-empty-lines": ["error", { max: 2, maxEOF: 0, maxBOF: 0 }] // Allow max=2 for imports
43+
}
44+
}
45+
];

0 commit comments

Comments
 (0)