Skip to content

Commit 7950142

Browse files
authored
chore: update outdated dependencies (#1441)
1 parent c5f409a commit 7950142

10 files changed

+1478
-1250
lines changed

.eslintrc.yml

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

eslint.config.mjs

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import tsParser from "@typescript-eslint/parser";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default [...compat.extends(
17+
"plugin:@typescript-eslint/recommended",
18+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
19+
"plugin:jest/recommended",
20+
"prettier",
21+
), {
22+
plugins: {
23+
"@typescript-eslint": typescriptEslint,
24+
},
25+
26+
languageOptions: {
27+
parser: tsParser,
28+
ecmaVersion: 2018,
29+
sourceType: "module",
30+
31+
parserOptions: {
32+
project: ["./tsconfig.json", "./tsconfig.spec.json"],
33+
},
34+
},
35+
36+
rules: {
37+
"@typescript-eslint/explicit-member-accessibility": "off",
38+
"@typescript-eslint/no-angle-bracket-type-assertion": "off",
39+
"@typescript-eslint/no-parameter-properties": "off",
40+
"@typescript-eslint/explicit-function-return-type": "off",
41+
"@typescript-eslint/member-delimiter-style": "off",
42+
"@typescript-eslint/no-inferrable-types": "off",
43+
"@typescript-eslint/no-explicit-any": "off",
44+
"@typescript-eslint/member-ordering": "error",
45+
"@typescript-eslint/no-unused-vars": ["error", {
46+
args: "none",
47+
}],
48+
"@typescript-eslint/ban-types": "off",
49+
"@typescript-eslint/no-unsafe-return": "off",
50+
"@typescript-eslint/no-unsafe-assignment": "off",
51+
"@typescript-eslint/no-unsafe-call": "off",
52+
"@typescript-eslint/no-unsafe-member-access": "off",
53+
"@typescript-eslint/explicit-module-boundary-types": "off",
54+
"@typescript-eslint/no-unsafe-argument": "off",
55+
"@typescript-eslint/no-var-requires": "off",
56+
"@typescript-eslint/no-unsafe-function-type": "off",
57+
"@typescript-eslint/no-wrapper-object-types": "off",
58+
"@typescript-eslint/no-require-imports": "off",
59+
"@typescript-eslint/no-redundant-type-constituents": "off",
60+
},
61+
}];

0 commit comments

Comments
 (0)