uilint-eslint 0.2.125 → 0.2.126
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.js
CHANGED
|
@@ -4422,6 +4422,24 @@ var no_semantic_duplicates_default = createRule({
|
|
|
4422
4422
|
type: "integer",
|
|
4423
4423
|
minimum: 1,
|
|
4424
4424
|
description: "Minimum number of lines for a chunk to be reported"
|
|
4425
|
+
},
|
|
4426
|
+
confidenceLevel: {
|
|
4427
|
+
type: "string",
|
|
4428
|
+
enum: ["high", "medium", "low"],
|
|
4429
|
+
description: "Minimum confidence level to report"
|
|
4430
|
+
},
|
|
4431
|
+
useStructuralBoost: {
|
|
4432
|
+
type: "boolean",
|
|
4433
|
+
description: "Use structural similarity boost (props, JSX, hooks overlap)"
|
|
4434
|
+
},
|
|
4435
|
+
includeSameFile: {
|
|
4436
|
+
type: "boolean",
|
|
4437
|
+
description: "Include duplicates within the same file"
|
|
4438
|
+
},
|
|
4439
|
+
kind: {
|
|
4440
|
+
type: "string",
|
|
4441
|
+
enum: ["component", "hook", "function", "all"],
|
|
4442
|
+
description: "Filter by code kind"
|
|
4425
4443
|
}
|
|
4426
4444
|
},
|
|
4427
4445
|
additionalProperties: false
|
|
@@ -4430,9 +4448,13 @@ var no_semantic_duplicates_default = createRule({
|
|
|
4430
4448
|
},
|
|
4431
4449
|
defaultOptions: [
|
|
4432
4450
|
{
|
|
4433
|
-
threshold: 0.
|
|
4451
|
+
threshold: 0.75,
|
|
4434
4452
|
indexPath: ".uilint/.duplicates-index",
|
|
4435
|
-
minLines: 3
|
|
4453
|
+
minLines: 3,
|
|
4454
|
+
confidenceLevel: "low",
|
|
4455
|
+
useStructuralBoost: true,
|
|
4456
|
+
includeSameFile: false,
|
|
4457
|
+
kind: "all"
|
|
4436
4458
|
}
|
|
4437
4459
|
],
|
|
4438
4460
|
create(context) {
|