@tb-dev/eslint-config 5.4.22 → 5.5.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 +11 -5
- package/dist/index.js +11 -5
- package/package.json +11 -11
package/dist/index.cjs
CHANGED
|
@@ -509,6 +509,10 @@ async function typescript(options) {
|
|
|
509
509
|
if (isEnabled(options.features, "vue")) {
|
|
510
510
|
files.push(Glob.Vue);
|
|
511
511
|
}
|
|
512
|
+
const extraFileExtensions = [];
|
|
513
|
+
if (isEnabled(options.features, "vue")) {
|
|
514
|
+
extraFileExtensions.push(".vue");
|
|
515
|
+
}
|
|
512
516
|
const rules = {
|
|
513
517
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
514
518
|
"no-array-constructor": "off",
|
|
@@ -725,7 +729,13 @@ async function typescript(options) {
|
|
|
725
729
|
],
|
|
726
730
|
"@typescript-eslint/prefer-optional-chain": "error",
|
|
727
731
|
"prefer-promise-reject-errors": "off",
|
|
728
|
-
"@typescript-eslint/prefer-promise-reject-errors":
|
|
732
|
+
"@typescript-eslint/prefer-promise-reject-errors": [
|
|
733
|
+
"error",
|
|
734
|
+
{
|
|
735
|
+
allowThrowingAny: false,
|
|
736
|
+
allowThrowingUnknown: false
|
|
737
|
+
}
|
|
738
|
+
],
|
|
729
739
|
"@typescript-eslint/prefer-readonly": "error",
|
|
730
740
|
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
731
741
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
@@ -753,10 +763,6 @@ async function typescript(options) {
|
|
|
753
763
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
|
|
754
764
|
...options.overrides?.typescript
|
|
755
765
|
};
|
|
756
|
-
const extraFileExtensions = [];
|
|
757
|
-
if (isEnabled(options.features, "vue")) {
|
|
758
|
-
extraFileExtensions.push(".vue");
|
|
759
|
-
}
|
|
760
766
|
return {
|
|
761
767
|
files,
|
|
762
768
|
languageOptions: {
|
package/dist/index.js
CHANGED
|
@@ -505,6 +505,10 @@ async function typescript(options) {
|
|
|
505
505
|
if (isEnabled(options.features, "vue")) {
|
|
506
506
|
files.push(Glob.Vue);
|
|
507
507
|
}
|
|
508
|
+
const extraFileExtensions = [];
|
|
509
|
+
if (isEnabled(options.features, "vue")) {
|
|
510
|
+
extraFileExtensions.push(".vue");
|
|
511
|
+
}
|
|
508
512
|
const rules = {
|
|
509
513
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
510
514
|
"no-array-constructor": "off",
|
|
@@ -721,7 +725,13 @@ async function typescript(options) {
|
|
|
721
725
|
],
|
|
722
726
|
"@typescript-eslint/prefer-optional-chain": "error",
|
|
723
727
|
"prefer-promise-reject-errors": "off",
|
|
724
|
-
"@typescript-eslint/prefer-promise-reject-errors":
|
|
728
|
+
"@typescript-eslint/prefer-promise-reject-errors": [
|
|
729
|
+
"error",
|
|
730
|
+
{
|
|
731
|
+
allowThrowingAny: false,
|
|
732
|
+
allowThrowingUnknown: false
|
|
733
|
+
}
|
|
734
|
+
],
|
|
725
735
|
"@typescript-eslint/prefer-readonly": "error",
|
|
726
736
|
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
727
737
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
@@ -749,10 +759,6 @@ async function typescript(options) {
|
|
|
749
759
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
|
|
750
760
|
...options.overrides?.typescript
|
|
751
761
|
};
|
|
752
|
-
const extraFileExtensions = [];
|
|
753
|
-
if (isEnabled(options.features, "vue")) {
|
|
754
|
-
extraFileExtensions.push(".vue");
|
|
755
|
-
}
|
|
756
762
|
return {
|
|
757
763
|
files,
|
|
758
764
|
languageOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
"vue"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
24
|
-
"@typescript-eslint/parser": "^8.
|
|
25
|
-
"eslint-plugin-perfectionist": "^3.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
24
|
+
"@typescript-eslint/parser": "^8.18.0",
|
|
25
|
+
"eslint-plugin-perfectionist": "^4.3.0",
|
|
26
26
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
27
27
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
28
|
-
"eslint-plugin-vue": "^9.
|
|
29
|
-
"globals": "^15.
|
|
28
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
29
|
+
"globals": "^15.13.0",
|
|
30
30
|
"vue-eslint-parser": "^9.4.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^22.
|
|
34
|
-
"eslint": "^9.
|
|
35
|
-
"prettier": "^3.
|
|
33
|
+
"@types/node": "^22.10.2",
|
|
34
|
+
"eslint": "^9.16.0",
|
|
35
|
+
"prettier": "^3.4.2",
|
|
36
36
|
"tslib": "^2.8.1",
|
|
37
|
-
"typescript": "^5.
|
|
38
|
-
"vite": "^
|
|
37
|
+
"typescript": "^5.7.2",
|
|
38
|
+
"vite": "^6.0.3",
|
|
39
39
|
"vite-plugin-dts": "^4.3.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|