@tb-dev/eslint-config 3.2.4 → 3.3.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 CHANGED
@@ -212,26 +212,6 @@ async function perfectionist(options) {
212
212
  perfectionist: plugin
213
213
  },
214
214
  rules: {
215
- "perfectionist/sort-classes": [
216
- "error",
217
- {
218
- type: "natural",
219
- order: "asc",
220
- groups: [
221
- "index-signature",
222
- "property",
223
- "private-property",
224
- "constructor",
225
- "method",
226
- "private-method",
227
- ["get-method", "set-method"],
228
- "static-property",
229
- "static-method",
230
- "static-private-method",
231
- "unknown"
232
- ]
233
- }
234
- ],
235
215
  "perfectionist/sort-enums": [
236
216
  "error",
237
217
  {
@@ -447,8 +427,6 @@ async function typescript(options) {
447
427
  "no-shadow": "off",
448
428
  "@typescript-eslint/no-shadow": "error",
449
429
  "@typescript-eslint/no-this-alias": "error",
450
- "no-throw-literal": "off",
451
- "@typescript-eslint/no-throw-literal": "error",
452
430
  "@typescript-eslint/no-unnecessary-boolean-literal-compare": [
453
431
  "error",
454
432
  {
@@ -490,6 +468,14 @@ async function typescript(options) {
490
468
  "@typescript-eslint/no-useless-empty-export": "error",
491
469
  "@typescript-eslint/no-useless-template-literals": "error",
492
470
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
471
+ "no-throw-literal": "off",
472
+ "@typescript-eslint/only-throw-error": [
473
+ "error",
474
+ {
475
+ allowThrowingAny: false,
476
+ allowThrowingUnknown: false
477
+ }
478
+ ],
493
479
  "@typescript-eslint/prefer-as-const": "error",
494
480
  "@typescript-eslint/prefer-enum-initializers": "error",
495
481
  "@typescript-eslint/prefer-find": "error",
package/dist/index.js CHANGED
@@ -189,26 +189,6 @@ async function perfectionist(options) {
189
189
  perfectionist: plugin
190
190
  },
191
191
  rules: {
192
- "perfectionist/sort-classes": [
193
- "error",
194
- {
195
- type: "natural",
196
- order: "asc",
197
- groups: [
198
- "index-signature",
199
- "property",
200
- "private-property",
201
- "constructor",
202
- "method",
203
- "private-method",
204
- ["get-method", "set-method"],
205
- "static-property",
206
- "static-method",
207
- "static-private-method",
208
- "unknown"
209
- ]
210
- }
211
- ],
212
192
  "perfectionist/sort-enums": [
213
193
  "error",
214
194
  {
@@ -424,8 +404,6 @@ async function typescript(options) {
424
404
  "no-shadow": "off",
425
405
  "@typescript-eslint/no-shadow": "error",
426
406
  "@typescript-eslint/no-this-alias": "error",
427
- "no-throw-literal": "off",
428
- "@typescript-eslint/no-throw-literal": "error",
429
407
  "@typescript-eslint/no-unnecessary-boolean-literal-compare": [
430
408
  "error",
431
409
  {
@@ -467,6 +445,14 @@ async function typescript(options) {
467
445
  "@typescript-eslint/no-useless-empty-export": "error",
468
446
  "@typescript-eslint/no-useless-template-literals": "error",
469
447
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
448
+ "no-throw-literal": "off",
449
+ "@typescript-eslint/only-throw-error": [
450
+ "error",
451
+ {
452
+ allowThrowingAny: false,
453
+ allowThrowingUnknown: false
454
+ }
455
+ ],
470
456
  "@typescript-eslint/prefer-as-const": "error",
471
457
  "@typescript-eslint/prefer-enum-initializers": "error",
472
458
  "@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.2.4",
3
+ "version": "3.3.1",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "private": false,
8
- "packageManager": "pnpm@8.15.4",
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.3.1",
22
- "@typescript-eslint/parser": "^7.3.1",
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.3.26",
26
+ "eslint-plugin-vitest": "^0.4.0",
27
27
  "eslint-plugin-vue": "^9.24.0",
28
- "globals": "^14.0.0",
28
+ "globals": "^15.0.0",
29
29
  "vue-eslint-parser": "^9.4.2"
30
30
  },
31
31
  "devDependencies": {
@@ -38,7 +38,7 @@
38
38
  "tslib": "^2.6.2",
39
39
  "typescript": "^5.4.3",
40
40
  "vite": "^5.2.6",
41
- "vite-plugin-dts": "^3.7.3"
41
+ "vite-plugin-dts": "^3.8.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "eslint": "^8.57.0",