Skip to content

Commit f9d627a

Browse files
committed
Update dependencies
1 parent 473e624 commit f9d627a

File tree

5 files changed

+1080
-994
lines changed

5 files changed

+1080
-994
lines changed

.eslintrc.js

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

eslint.config.mjs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import eslint from "@eslint/js";
2+
import prettierRecommended from "eslint-plugin-prettier/recommended";
3+
import tseslint from "typescript-eslint";
4+
5+
export default [
6+
eslint.configs.recommended,
7+
...tseslint.configs.strictTypeChecked,
8+
...tseslint.configs.stylisticTypeChecked,
9+
prettierRecommended,
10+
{
11+
linterOptions: {
12+
reportUnusedDisableDirectives: true,
13+
},
14+
languageOptions: {
15+
parserOptions: {
16+
projectService: {
17+
allowDefaultProject: ["eslint.config.mjs"],
18+
},
19+
tsconfigRootDir: import.meta.dirname,
20+
},
21+
},
22+
rules: {
23+
"prettier/prettier": "warn",
24+
eqeqeq: ["error", "smart"],
25+
"linebreak-style": ["error", "unix"],
26+
"no-console": "error",
27+
"no-multi-assign": "error",
28+
"no-return-assign": "error",
29+
"no-unused-expressions": "error",
30+
"@typescript-eslint/prefer-for-of": "off",
31+
"@typescript-eslint/unbound-method": "off",
32+
"@typescript-eslint/restrict-template-expressions": [
33+
"error",
34+
{
35+
allowAny: false,
36+
allowBoolean: false,
37+
allowNullish: false,
38+
allowNumber: true,
39+
allowRegExp: false,
40+
},
41+
],
42+
"@typescript-eslint/explicit-member-accessibility": [
43+
"error",
44+
{ accessibility: "no-public" },
45+
],
46+
"@typescript-eslint/no-unused-vars": [
47+
"error",
48+
{
49+
varsIgnorePattern: "^_",
50+
argsIgnorePattern: "^_",
51+
caughtErrorsIgnorePattern: "^_",
52+
},
53+
],
54+
"@typescript-eslint/switch-exhaustiveness-check": "error",
55+
},
56+
},
57+
];

0 commit comments

Comments
 (0)