Skip to content

Commit 9a1be7d

Browse files
authored
Merge pull request #22 from imqueue/chore/update/deps
chore: update deps
2 parents 2068442 + 7f55776 commit 9a1be7d

File tree

3 files changed

+1608
-1844
lines changed

3 files changed

+1608
-1844
lines changed
Lines changed: 67 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,51 @@
1-
{
2-
"env": {
3-
"browser": true,
4-
"es6": true,
5-
"node": true
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import globals from "globals";
3+
import tsParser from "@typescript-eslint/parser";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
});
16+
17+
export default [...compat.extends(
18+
"plugin:@typescript-eslint/recommended",
19+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
20+
), {
21+
plugins: {
22+
"@typescript-eslint": typescriptEslint,
623
},
7-
"extends": [
8-
"plugin:@typescript-eslint/recommended",
9-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
10-
],
11-
"parser": "@typescript-eslint/parser",
12-
"parserOptions": {
13-
"project": "tsconfig.json",
14-
"sourceType": "module"
24+
25+
languageOptions: {
26+
globals: {
27+
...globals.browser,
28+
...globals.node,
29+
},
30+
31+
parser: tsParser,
32+
ecmaVersion: 5,
33+
sourceType: "module",
34+
35+
parserOptions: {
36+
project: "tsconfig.json",
37+
},
1538
},
16-
"plugins": [
17-
"@typescript-eslint"
18-
],
19-
"rules": {
39+
40+
rules: {
2041
"@typescript-eslint/adjacent-overload-signatures": "error",
2142
"@typescript-eslint/array-type": "error",
22-
"@typescript-eslint/ban-types": "error",
2343
"@typescript-eslint/class-name-casing": "off",
2444
"@typescript-eslint/consistent-type-assertions": "error",
2545
"@typescript-eslint/interface-name-prefix": "off",
2646
"@typescript-eslint/no-unsafe-member-access": "off",
2747
"@typescript-eslint/no-unsafe-call": "off",
2848
"@typescript-eslint/no-unsafe-assignment": "off",
29-
"@typescript-eslint/member-delimiter-style": [
30-
"error",
31-
{
32-
"multiline": {
33-
"delimiter": "semi",
34-
"requireLast": true
35-
},
36-
"singleline": {
37-
"delimiter": "semi",
38-
"requireLast": false
39-
}
40-
}
41-
],
4249
"@typescript-eslint/no-misused-promises": "off",
4350
"@typescript-eslint/no-empty-function": "error",
4451
"@typescript-eslint/no-empty-interface": "error",
@@ -51,31 +58,24 @@
5158
"@typescript-eslint/prefer-for-of": "error",
5259
"@typescript-eslint/prefer-function-type": "error",
5360
"@typescript-eslint/prefer-namespace-keyword": "error",
54-
"@typescript-eslint/unbound-method": "off",
55-
"@typescript-eslint/quotes": [
56-
"error",
57-
"single",
58-
{
59-
"avoidEscape": true
60-
}
61-
],
62-
"@typescript-eslint/semi": "error",
61+
"@typescript-eslint/unbound-method": "off",
62+
63+
"quotes": ["error", "single", {
64+
avoidEscape: true,
65+
}],
66+
67+
"semi": "error",
6368
"@typescript-eslint/triple-slash-reference": "error",
6469
"@typescript-eslint/unified-signatures": "error",
65-
"arrow-parens": [
66-
"off",
67-
"as-needed"
68-
],
69-
"camelcase": "error",
70+
"arrow-parens": ["off", "as-needed"],
71+
camelcase: "error",
7072
"comma-dangle": "off",
71-
"complexity": "off",
73+
complexity: "off",
7274
"constructor-super": "error",
7375
"dot-notation": "error",
74-
"eqeqeq": [
75-
"error",
76-
"smart"
77-
],
76+
eqeqeq: ["error", "smart"],
7877
"guard-for-in": "error",
78+
7979
"id-blacklist": [
8080
"error",
8181
"any",
@@ -86,16 +86,16 @@
8686
"Boolean",
8787
"boolean",
8888
"Undefined",
89-
"undefined"
89+
"undefined",
9090
],
91+
9192
"id-match": "error",
9293
"max-classes-per-file": "off",
93-
"max-len": [
94-
"error",
95-
{
96-
"code": 80
97-
}
98-
],
94+
95+
"max-len": ["error", {
96+
code: 80,
97+
}],
98+
9999
"new-parens": "error",
100100
"no-bitwise": "off",
101101
"no-caller": "error",
@@ -108,12 +108,11 @@
108108
"no-invalid-this": "off",
109109
"no-multiple-empty-lines": "off",
110110
"no-new-wrappers": "error",
111-
"no-shadow": [
112-
"error",
113-
{
114-
"hoist": "all"
115-
}
116-
],
111+
112+
"no-shadow": ["error", {
113+
hoist: "all",
114+
}],
115+
117116
"no-throw-literal": "error",
118117
"no-trailing-spaces": "error",
119118
"no-undef-init": "error",
@@ -123,15 +122,12 @@
123122
"no-unused-labels": "error",
124123
"no-var": "error",
125124
"object-shorthand": "error",
126-
"one-var": [
127-
"error",
128-
"never"
129-
],
125+
"one-var": ["error", "never"],
130126
"prefer-arrow/prefer-arrow-functions": "off",
131127
"prefer-const": "error",
132-
"radix": "error",
128+
radix: "error",
133129
"spaced-comment": "off",
134130
"use-isnan": "error",
135-
"valid-typeof": "off"
136-
}
137-
}
131+
"valid-typeof": "off",
132+
},
133+
}];

0 commit comments

Comments
 (0)