Skip to content

Commit 0faf792

Browse files
committed
Update eslint's
1 parent cf033d6 commit 0faf792

File tree

3 files changed

+250
-115
lines changed

3 files changed

+250
-115
lines changed

.eslintrc

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"plugins": [
1111
"eslint-plugin-import",
1212
"eslint-plugin-jsdoc",
13+
"@stylistic",
1314
"@typescript-eslint"
1415
],
1516
"rules": {
@@ -20,33 +21,9 @@
2021
"default": "array"
2122
}
2223
],
23-
"@typescript-eslint/ban-types": [
24-
"error",
25-
{
26-
"types": {
27-
"Object": {
28-
"message": "Avoid using the `Object` type. Did you mean `Record<string,...>`?"
29-
},
30-
"Function": {
31-
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
32-
},
33-
"Boolean": {
34-
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
35-
},
36-
"Number": {
37-
"message": "Avoid using the `Number` type. Did you mean `number`?"
38-
},
39-
"String": {
40-
"message": "Avoid using the `String` type. Did you mean `string`?"
41-
},
42-
"Symbol": {
43-
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
44-
}
45-
}
46-
}
47-
],
24+
"@typescript-eslint/no-wrapper-object-types": "error",
4825
"@typescript-eslint/consistent-type-assertions": "error",
49-
"@typescript-eslint/indent": "error",
26+
"@stylistic/indent": "error",
5027
"@typescript-eslint/naming-convention": "off",
5128
"@typescript-eslint/no-empty-interface": "error",
5229
"@typescript-eslint/no-explicit-any": "warn",

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,19 @@
4646
},
4747
"devDependencies": {
4848
"@istanbuljs/nyc-config-typescript": "^1.0.2",
49+
"@stylistic/eslint-plugin": "^3.1.0",
4950
"@tsconfig/node22": "^22.0.2",
5051
"@types/chai": "^4.3.11",
5152
"@types/mocha": "^9.0.0",
5253
"@types/node": "^22",
5354
"@types/pg": "^7.14.5",
5455
"@types/xmpp__jid": "^1.3.5",
5556
"@types/xmpp__xml": "^0.6.1",
56-
"@typescript-eslint/eslint-plugin": "^6.18.0",
57-
"@typescript-eslint/eslint-plugin-tslint": "^6.18.0",
58-
"@typescript-eslint/parser": "^6.18.0",
57+
"@typescript-eslint/eslint-plugin": "^8.46.2",
58+
"@typescript-eslint/eslint-plugin-tslint": "^7.0.2",
59+
"@typescript-eslint/parser": "^8.46.2",
5960
"chai": "^4",
60-
"eslint": "^8.56.0",
61+
"eslint": "^8.57.1",
6162
"eslint-plugin-import": "^2.29.1",
6263
"eslint-plugin-jsdoc": "^48.0.2",
6364
"mocha": "^9.0.3",

0 commit comments

Comments
 (0)