eslint-plugin-harlanzw 0.12.3 → 0.13.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.mjs +5 -5
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import process from 'node:process';
|
|
|
4
4
|
import { TextSourceCodeBase, ConfigCommentParser, Directive, VisitNodeStep } from '@eslint/plugin-kit';
|
|
5
5
|
import { AST_NODE_TYPES } from '@typescript-eslint/utils';
|
|
6
6
|
|
|
7
|
-
const version = "0.
|
|
7
|
+
const version = "0.13.0";
|
|
8
8
|
|
|
9
9
|
const STRENGTH_PATTERNS = {
|
|
10
10
|
strong: ["never", "must", "always", "under no circumstances", "absolutely", "required", "mandatory", "forbidden", "prohibited"],
|
|
@@ -6404,8 +6404,6 @@ function hasUnresolvableType(node) {
|
|
|
6404
6404
|
return node.typeArguments.params.some((t) => hasUnresolvableType(t));
|
|
6405
6405
|
}
|
|
6406
6406
|
return false;
|
|
6407
|
-
case "TSParenthesizedType":
|
|
6408
|
-
return hasUnresolvableType(node.typeAnnotation);
|
|
6409
6407
|
default:
|
|
6410
6408
|
return false;
|
|
6411
6409
|
}
|
|
@@ -6845,7 +6843,8 @@ plugin.configs.nuxt = [
|
|
|
6845
6843
|
"harlanzw/nuxt-no-unsafe-date": "warn",
|
|
6846
6844
|
"harlanzw/nuxt-prefer-navigate-to-over-router-push-replace": "warn",
|
|
6847
6845
|
"harlanzw/nuxt-prefer-nuxt-link-over-router-link": "warn",
|
|
6848
|
-
"harlanzw/nuxt-ui-prefer-shorthand-css": "warn"
|
|
6846
|
+
"harlanzw/nuxt-ui-prefer-shorthand-css": "warn",
|
|
6847
|
+
"harlanzw/no-silent-catch": "error"
|
|
6849
6848
|
}
|
|
6850
6849
|
}
|
|
6851
6850
|
];
|
|
@@ -6867,7 +6866,8 @@ plugin.configs.vue = [
|
|
|
6867
6866
|
"harlanzw/vue-no-torefs-on-props": "warn",
|
|
6868
6867
|
"harlanzw/vue-no-unresolvable-define-emits": "error",
|
|
6869
6868
|
"harlanzw/vue-prefer-define-emits-object-syntax": "warn",
|
|
6870
|
-
"harlanzw/vue-require-composable-prefix": "warn"
|
|
6869
|
+
"harlanzw/vue-require-composable-prefix": "warn",
|
|
6870
|
+
"harlanzw/no-silent-catch": "error"
|
|
6871
6871
|
}
|
|
6872
6872
|
},
|
|
6873
6873
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-harlanzw",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"description": "Harlan's opinionated ESLint rules",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@antfu/utils": "^9.3.0",
|
|
38
38
|
"@types/eslint": "^9.6.1",
|
|
39
39
|
"@types/node": "^25.7.0",
|
|
40
|
+
"@typescript-eslint/parser": "^8.59.3",
|
|
40
41
|
"@typescript-eslint/typescript-estree": "^8.59.3",
|
|
41
42
|
"@typescript-eslint/utils": "^8.59.3",
|
|
42
43
|
"bumpp": "^11.1.0",
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"vite": "^8.0.12",
|
|
51
52
|
"vitest": "^4.1.6",
|
|
52
53
|
"vue": "^3.5.34",
|
|
54
|
+
"vue-eslint-parser": "^10.4.0",
|
|
53
55
|
"yaml-eslint-parser": "^2.0.0"
|
|
54
56
|
},
|
|
55
57
|
"resolutions": {
|