uilint-eslint 0.2.47 → 0.2.49

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.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
2
  import { Linter } from 'eslint';
3
3
  import { ESLintUtils, TSESTree } from '@typescript-eslint/utils';
4
+ export { ResolverFactory } from 'oxc-resolver';
4
5
 
5
6
  /**
6
7
  * Rule creation helper using @typescript-eslint/utils
@@ -135,6 +136,32 @@ interface RuleMeta {
135
136
  * Migrations are applied in order to transform options from older versions.
136
137
  */
137
138
  migrations?: RuleMigration[];
139
+ /**
140
+ * Which UI plugin should handle this rule.
141
+ * Defaults based on category:
142
+ * - "static" category → "eslint" plugin
143
+ * - "semantic" category → "semantic" plugin
144
+ *
145
+ * Special cases:
146
+ * - "vision" for semantic-vision rule
147
+ */
148
+ plugin?: "eslint" | "vision" | "semantic";
149
+ /**
150
+ * Custom inspector panel ID to use for this rule's issues.
151
+ * If not specified, uses the plugin's default issue inspector.
152
+ *
153
+ * Examples:
154
+ * - "vision-issue" for VisionIssueInspector
155
+ * - "duplicates" for DuplicatesInspector
156
+ * - "semantic-issue" for SemanticIssueInspector
157
+ */
158
+ customInspector?: string;
159
+ /**
160
+ * Custom heatmap color for this rule's issues.
161
+ * CSS color value (hex, rgb, hsl, or named color).
162
+ * If not specified, uses severity-based coloring.
163
+ */
164
+ heatmapColor?: string;
138
165
  }
139
166
  /**
140
167
  * Helper to define rule metadata with type safety
package/dist/index.js CHANGED
@@ -2019,6 +2019,8 @@ var meta7 = defineRuleMeta({
2019
2019
  hint: "LLM-powered UI analysis",
2020
2020
  defaultEnabled: false,
2021
2021
  requiresStyleguide: true,
2022
+ plugin: "semantic",
2023
+ customInspector: "semantic-issue",
2022
2024
  requirements: [
2023
2025
  {
2024
2026
  type: "ollama",
@@ -2362,6 +2364,9 @@ var meta8 = defineRuleMeta({
2362
2364
  hint: "Vision AI for rendered UI",
2363
2365
  defaultEnabled: false,
2364
2366
  requiresStyleguide: false,
2367
+ plugin: "vision",
2368
+ customInspector: "vision-issue",
2369
+ heatmapColor: "#8B5CF6",
2365
2370
  postInstallInstructions: "Add the UILint browser overlay to your app and run analysis from the browser to generate cached results.",
2366
2371
  defaultOptions: [{ maxAgeMs: 36e5, screenshotsPath: ".uilint/screenshots" }],
2367
2372
  optionSchema: {
@@ -4390,6 +4395,8 @@ var meta15 = defineRuleMeta({
4390
4395
  icon: "\u{1F50D}",
4391
4396
  hint: "Finds similar code via embeddings",
4392
4397
  defaultEnabled: false,
4398
+ plugin: "semantic",
4399
+ customInspector: "duplicates",
4393
4400
  requirements: [
4394
4401
  {
4395
4402
  type: "semantic-index",
@@ -6768,6 +6775,7 @@ function getAllRuleIds() {
6768
6775
  }
6769
6776
 
6770
6777
  // src/index.ts
6778
+ import { ResolverFactory as ResolverFactory3 } from "oxc-resolver";
6771
6779
  var rules = {
6772
6780
  "no-arbitrary-tailwind": no_arbitrary_tailwind_default,
6773
6781
  "consistent-spacing": consistent_spacing_default,
@@ -7105,6 +7113,7 @@ var uilintEslint = {
7105
7113
  };
7106
7114
  var index_default = uilintEslint;
7107
7115
  export {
7116
+ ResolverFactory3 as ResolverFactory,
7108
7117
  aggregateCoverage,
7109
7118
  analyzeJSXElementCoverage,
7110
7119
  buildDataLoc,