@flint.fyi/vue 0.3.1 → 0.4.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.d.mts CHANGED
@@ -1,11 +1,7 @@
1
1
  //#region src/plugin.d.ts
2
- declare const vue: import("@flint.fyi/core").Plugin<import("@flint.fyi/core").RuleAbout<string>, "all", [import("@flint.fyi/core").Rule<{
2
+ export declare const vue: import("@flint.fyi/core").Plugin<import("@flint.fyi/core").RuleAbout<string>, "all", [import("@flint.fyi/core").Rule<import("@flint.fyi/core").PluginRuleAbout<string> & {
3
3
  readonly description: "Reports v-for directives without a valid key binding.";
4
4
  readonly id: "vForKeys";
5
5
  readonly presets: readonly ["logical"];
6
- } & {
7
- readonly pluginId: string;
8
- readonly url: string;
9
6
  }, "invalidKey" | "missingKey" | "staticKey", undefined>]>;
10
- //#endregion
11
- export { vue };
7
+ //#endregion
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { RuleCreator, createPlugin } from "@flint.fyi/core";
2
2
  import { ts } from "@flint.fyi/ts";
3
3
  import * as vue$1 from "@vue/compiler-dom";
4
- import ts$1 from "typescript";
4
+ import { SyntaxKind } from "typescript";
5
5
  import { nullThrows } from "@flint.fyi/utils";
6
6
  import { reportSourceCode } from "@flint.fyi/volar-language";
7
7
  import { vueLanguage } from "@flint.fyi/vue-language";
@@ -113,7 +113,7 @@ var vForKeys_default = new RuleCreator({
113
113
  const currentBegin = current.getStart(node);
114
114
  const currentEnd = current.getEnd();
115
115
  if (currentBegin > valueRange.end || currentEnd <= valueRange.begin) return false;
116
- if (currentBegin >= valueRange.begin && currentEnd <= valueRange.end && ts$1.isIdentifier(current)) {
116
+ if (currentBegin >= valueRange.begin && currentEnd <= valueRange.end && current.kind === SyntaxKind.Identifier) {
117
117
  const symbol = services.typeChecker.getSymbolAtLocation(current);
118
118
  if (symbol?.valueDeclaration == null) return false;
119
119
  const declStart = symbol.valueDeclaration.getStart(node);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flint.fyi/vue",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "[Experimental] Vue.js language plugin for Flint.",
5
5
  "homepage": "https://flint.fyi/rules/vue",
6
6
  "repository": {
@@ -22,20 +22,20 @@
22
22
  "dist/"
23
23
  ],
24
24
  "dependencies": {
25
- "@flint.fyi/core": "^0.26.0",
26
- "@flint.fyi/ts": "^0.23.2",
25
+ "@flint.fyi/core": "^0.27.0",
26
+ "@flint.fyi/ts": "^0.23.3",
27
27
  "@flint.fyi/utils": "^0.16.0",
28
- "@flint.fyi/volar-language": "^0.3.1",
29
- "@flint.fyi/vue-language": "^0.3.0",
28
+ "@flint.fyi/volar-language": "^0.4.0",
29
+ "@flint.fyi/vue-language": "^0.4.0",
30
30
  "@vue/compiler-dom": "^3.5.0",
31
- "typescript": "^5.9.0 || ^6.0.0"
31
+ "typescript": "^6.0.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@flint.fyi/build": "^0.1.0",
35
- "@flint.fyi/rule-tester": "^0.19.1",
36
- "@flint.fyi/typescript-language": "^0.20.1",
37
- "tsdown": "0.22.14",
38
- "vitest": "4.1.11",
35
+ "@flint.fyi/rule-tester": "^0.20.0",
36
+ "@flint.fyi/typescript-language": "^0.21.0",
37
+ "tsdown": "0.23.0",
38
+ "vitest": "5.0.1",
39
39
  "vue": "3.5.42"
40
40
  },
41
41
  "engines": {