uilint-eslint 0.2.77 → 0.2.79

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilint-eslint",
3
- "version": "0.2.77",
3
+ "version": "0.2.79",
4
4
  "description": "ESLint plugin for UILint - AI-powered UI consistency checking",
5
5
  "author": "Peter Suggate",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "@typescript-eslint/utils": "^8.35.1",
36
36
  "oxc-resolver": "^11.0.0",
37
37
  "xxhash-wasm": "^1.1.0",
38
- "uilint-core": "0.2.77"
38
+ "uilint-core": "0.2.79"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/eslint": "^9.6.1",
@@ -680,6 +680,12 @@ export default createRule<Options, MessageIds>({
680
680
  enum: ["error", "warn", "off"],
681
681
  description: "Severity for chunk coverage check",
682
682
  },
683
+ minStatements: {
684
+ type: "number",
685
+ minimum: 0,
686
+ description:
687
+ "Files with fewer statements are exempt from coverage requirements",
688
+ },
683
689
  },
684
690
  additionalProperties: false,
685
691
  },
@@ -252,7 +252,7 @@ describeWithFixtures("require-test-coverage mode", () => {
252
252
  export function existingFunction(): string { return "I exist"; }
253
253
  export function newFunction(): string { return "I am new"; }
254
254
  `,
255
- options: [{ chunkCoverage: false }],
255
+ options: [{ chunkCoverage: false, minStatements: 0 }],
256
256
  errors: [
257
257
  { messageId: "belowThreshold" },
258
258
  ],
@@ -431,6 +431,7 @@ export function Component() {
431
431
  options: [{
432
432
  aggregateThreshold: 70,
433
433
  severity: {},
434
+ minStatements: 0,
434
435
  }],
435
436
  errors: [{ messageId: "belowAggregateThreshold" }],
436
437
  },
@@ -450,6 +451,7 @@ export function Component() {
450
451
  options: [{
451
452
  aggregateThreshold: 50,
452
453
  severity: {},
454
+ minStatements: 0,
453
455
  }],
454
456
  errors: [{ messageId: "belowAggregateThreshold" }],
455
457
  },
@@ -676,6 +678,7 @@ export function formatName(first: string, last: string): string {
676
678
  chunkCoverage: true,
677
679
  chunkThreshold: 80,
678
680
  severity: {},
681
+ minStatements: 0,
679
682
  }],
680
683
  errors: [
681
684
  // Function below threshold (coverage data doesn't match test code line numbers)
@@ -697,6 +700,7 @@ export function formatName(first: string, last: string): string {
697
700
  chunkThreshold: 100, // Set impossibly high to guarantee error
698
701
  relaxedThreshold: 40,
699
702
  severity: {},
703
+ minStatements: 0,
700
704
  }],
701
705
  errors: [
702
706
  // Utility will be below 100% threshold