@tb-dev/eslint-config 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -183,7 +183,7 @@ function javascript(options) {
|
|
|
183
183
|
"prefer-rest-params": "error",
|
|
184
184
|
"prefer-spread": "error",
|
|
185
185
|
"prefer-template": "error",
|
|
186
|
-
"require-atomic-updates": "error",
|
|
186
|
+
"require-atomic-updates": ["error", { allowProperties: true }],
|
|
187
187
|
"sort-imports": [
|
|
188
188
|
"error",
|
|
189
189
|
{
|
|
@@ -404,7 +404,7 @@ async function typescript(options) {
|
|
|
404
404
|
"@typescript-eslint/no-explicit-any": ["error", { fixToUnknown: true }],
|
|
405
405
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
406
406
|
"@typescript-eslint/no-extraneous-class": "error",
|
|
407
|
-
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
|
|
407
|
+
"@typescript-eslint/no-floating-promises": ["error", { ignoreIIFE: true, ignoreVoid: true }],
|
|
408
408
|
"@typescript-eslint/no-for-in-array": "error",
|
|
409
409
|
"no-implied-eval": "off",
|
|
410
410
|
"@typescript-eslint/no-implied-eval": "error",
|
|
@@ -541,6 +541,7 @@ async function typescript(options) {
|
|
|
541
541
|
ignoreDifferentlyNamedParameters: true
|
|
542
542
|
}
|
|
543
543
|
],
|
|
544
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
|
|
544
545
|
...overrides == null ? void 0 : overrides.typescript
|
|
545
546
|
};
|
|
546
547
|
return {
|
package/dist/index.js
CHANGED
|
@@ -160,7 +160,7 @@ function javascript(options) {
|
|
|
160
160
|
"prefer-rest-params": "error",
|
|
161
161
|
"prefer-spread": "error",
|
|
162
162
|
"prefer-template": "error",
|
|
163
|
-
"require-atomic-updates": "error",
|
|
163
|
+
"require-atomic-updates": ["error", { allowProperties: true }],
|
|
164
164
|
"sort-imports": [
|
|
165
165
|
"error",
|
|
166
166
|
{
|
|
@@ -381,7 +381,7 @@ async function typescript(options) {
|
|
|
381
381
|
"@typescript-eslint/no-explicit-any": ["error", { fixToUnknown: true }],
|
|
382
382
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
383
383
|
"@typescript-eslint/no-extraneous-class": "error",
|
|
384
|
-
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
|
|
384
|
+
"@typescript-eslint/no-floating-promises": ["error", { ignoreIIFE: true, ignoreVoid: true }],
|
|
385
385
|
"@typescript-eslint/no-for-in-array": "error",
|
|
386
386
|
"no-implied-eval": "off",
|
|
387
387
|
"@typescript-eslint/no-implied-eval": "error",
|
|
@@ -518,6 +518,7 @@ async function typescript(options) {
|
|
|
518
518
|
ignoreDifferentlyNamedParameters: true
|
|
519
519
|
}
|
|
520
520
|
],
|
|
521
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
|
|
521
522
|
...overrides == null ? void 0 : overrides.typescript
|
|
522
523
|
};
|
|
523
524
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"*.{?(c|m)@(j|t)s,css,vue,md,json}": "prettier --write"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
22
|
-
"@typescript-eslint/parser": "^7.
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
22
|
+
"@typescript-eslint/parser": "^7.3.1",
|
|
23
23
|
"eslint-config-prettier": "^9.1.0",
|
|
24
24
|
"eslint-plugin-perfectionist": "^2.7.0",
|
|
25
25
|
"eslint-plugin-unicorn": "^51.0.1",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
33
|
-
"@types/node": "^20.11.
|
|
33
|
+
"@types/node": "^20.11.30",
|
|
34
34
|
"eslint": "^8.57.0",
|
|
35
35
|
"husky": "^9.0.11",
|
|
36
36
|
"lint-staged": "^15.2.2",
|