@tb-dev/eslint-config 3.2.4 → 3.3.0
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 +8 -2
- package/dist/index.js +8 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -447,8 +447,6 @@ async function typescript(options) {
|
|
|
447
447
|
"no-shadow": "off",
|
|
448
448
|
"@typescript-eslint/no-shadow": "error",
|
|
449
449
|
"@typescript-eslint/no-this-alias": "error",
|
|
450
|
-
"no-throw-literal": "off",
|
|
451
|
-
"@typescript-eslint/no-throw-literal": "error",
|
|
452
450
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
|
|
453
451
|
"error",
|
|
454
452
|
{
|
|
@@ -490,6 +488,14 @@ async function typescript(options) {
|
|
|
490
488
|
"@typescript-eslint/no-useless-empty-export": "error",
|
|
491
489
|
"@typescript-eslint/no-useless-template-literals": "error",
|
|
492
490
|
"@typescript-eslint/non-nullable-type-assertion-style": "error",
|
|
491
|
+
"no-throw-literal": "off",
|
|
492
|
+
"@typescript-eslint/only-throw-error": [
|
|
493
|
+
"error",
|
|
494
|
+
{
|
|
495
|
+
allowThrowingAny: false,
|
|
496
|
+
allowThrowingUnknown: false
|
|
497
|
+
}
|
|
498
|
+
],
|
|
493
499
|
"@typescript-eslint/prefer-as-const": "error",
|
|
494
500
|
"@typescript-eslint/prefer-enum-initializers": "error",
|
|
495
501
|
"@typescript-eslint/prefer-find": "error",
|
package/dist/index.js
CHANGED
|
@@ -424,8 +424,6 @@ async function typescript(options) {
|
|
|
424
424
|
"no-shadow": "off",
|
|
425
425
|
"@typescript-eslint/no-shadow": "error",
|
|
426
426
|
"@typescript-eslint/no-this-alias": "error",
|
|
427
|
-
"no-throw-literal": "off",
|
|
428
|
-
"@typescript-eslint/no-throw-literal": "error",
|
|
429
427
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
|
|
430
428
|
"error",
|
|
431
429
|
{
|
|
@@ -467,6 +465,14 @@ async function typescript(options) {
|
|
|
467
465
|
"@typescript-eslint/no-useless-empty-export": "error",
|
|
468
466
|
"@typescript-eslint/no-useless-template-literals": "error",
|
|
469
467
|
"@typescript-eslint/non-nullable-type-assertion-style": "error",
|
|
468
|
+
"no-throw-literal": "off",
|
|
469
|
+
"@typescript-eslint/only-throw-error": [
|
|
470
|
+
"error",
|
|
471
|
+
{
|
|
472
|
+
allowThrowingAny: false,
|
|
473
|
+
allowThrowingUnknown: false
|
|
474
|
+
}
|
|
475
|
+
],
|
|
470
476
|
"@typescript-eslint/prefer-as-const": "error",
|
|
471
477
|
"@typescript-eslint/prefer-enum-initializers": "error",
|
|
472
478
|
"@typescript-eslint/prefer-find": "error",
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"private": false,
|
|
8
|
-
"packageManager": "pnpm@8.15.
|
|
8
|
+
"packageManager": "pnpm@8.15.5",
|
|
9
9
|
"homepage": "https://github.com/ferreira-tb/eslint-config",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -18,14 +18,14 @@
|
|
|
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.4.0",
|
|
22
|
+
"@typescript-eslint/parser": "^7.4.0",
|
|
23
23
|
"eslint-config-prettier": "^9.1.0",
|
|
24
24
|
"eslint-plugin-perfectionist": "^2.7.0",
|
|
25
25
|
"eslint-plugin-unicorn": "^51.0.1",
|
|
26
|
-
"eslint-plugin-vitest": "^0.
|
|
26
|
+
"eslint-plugin-vitest": "^0.4.0",
|
|
27
27
|
"eslint-plugin-vue": "^9.24.0",
|
|
28
|
-
"globals": "^
|
|
28
|
+
"globals": "^15.0.0",
|
|
29
29
|
"vue-eslint-parser": "^9.4.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|