@sarj/eslint-plugin 16.32.0 → 16.32.3
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/{_docs-DU-K223M.d.cts → _docs-Bq5OCcWF.d.cts} +4 -4
- package/dist/{_docs-DU-K223M.d.ts → _docs-Bq5OCcWF.d.ts} +4 -4
- package/dist/index.cjs +975 -416
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +975 -416
- package/package.json +1 -1
|
@@ -14,8 +14,8 @@ interface ExampleFile {
|
|
|
14
14
|
readonly source: string;
|
|
15
15
|
}
|
|
16
16
|
/** A reviewed example. It remains private unless `public: true` is explicit. */
|
|
17
|
-
interface RuleExample {
|
|
18
|
-
readonly ruleOptions?:
|
|
17
|
+
interface RuleExample<Options extends readonly unknown[] = readonly unknown[]> {
|
|
18
|
+
readonly ruleOptions?: Readonly<Options>;
|
|
19
19
|
readonly installedDependencies?: readonly {
|
|
20
20
|
readonly module: string;
|
|
21
21
|
readonly version: string;
|
|
@@ -31,7 +31,7 @@ interface RuleExample {
|
|
|
31
31
|
readonly fixedFiles?: readonly ExampleFile[];
|
|
32
32
|
}
|
|
33
33
|
/** Human-authored fields that cannot be derived from the ESLint rule module. */
|
|
34
|
-
interface RuleDocumentation {
|
|
34
|
+
interface RuleDocumentation<Options extends readonly unknown[] = readonly unknown[]> {
|
|
35
35
|
readonly summary: string;
|
|
36
36
|
readonly rationale: string;
|
|
37
37
|
readonly remediation: string;
|
|
@@ -44,7 +44,7 @@ interface RuleDocumentation {
|
|
|
44
44
|
readonly filePatterns?: readonly string[];
|
|
45
45
|
readonly references?: readonly string[];
|
|
46
46
|
readonly since?: string;
|
|
47
|
-
readonly examples?: readonly RuleExample[];
|
|
47
|
+
readonly examples?: readonly RuleExample<Options>[];
|
|
48
48
|
}
|
|
49
49
|
/** Complete native record exposed to catalog generation without changing ESLint metadata. */
|
|
50
50
|
interface NativeRuleSpec extends Required<Omit<RuleDocumentation, "since">> {
|
|
@@ -14,8 +14,8 @@ interface ExampleFile {
|
|
|
14
14
|
readonly source: string;
|
|
15
15
|
}
|
|
16
16
|
/** A reviewed example. It remains private unless `public: true` is explicit. */
|
|
17
|
-
interface RuleExample {
|
|
18
|
-
readonly ruleOptions?:
|
|
17
|
+
interface RuleExample<Options extends readonly unknown[] = readonly unknown[]> {
|
|
18
|
+
readonly ruleOptions?: Readonly<Options>;
|
|
19
19
|
readonly installedDependencies?: readonly {
|
|
20
20
|
readonly module: string;
|
|
21
21
|
readonly version: string;
|
|
@@ -31,7 +31,7 @@ interface RuleExample {
|
|
|
31
31
|
readonly fixedFiles?: readonly ExampleFile[];
|
|
32
32
|
}
|
|
33
33
|
/** Human-authored fields that cannot be derived from the ESLint rule module. */
|
|
34
|
-
interface RuleDocumentation {
|
|
34
|
+
interface RuleDocumentation<Options extends readonly unknown[] = readonly unknown[]> {
|
|
35
35
|
readonly summary: string;
|
|
36
36
|
readonly rationale: string;
|
|
37
37
|
readonly remediation: string;
|
|
@@ -44,7 +44,7 @@ interface RuleDocumentation {
|
|
|
44
44
|
readonly filePatterns?: readonly string[];
|
|
45
45
|
readonly references?: readonly string[];
|
|
46
46
|
readonly since?: string;
|
|
47
|
-
readonly examples?: readonly RuleExample[];
|
|
47
|
+
readonly examples?: readonly RuleExample<Options>[];
|
|
48
48
|
}
|
|
49
49
|
/** Complete native record exposed to catalog generation without changing ESLint metadata. */
|
|
50
50
|
interface NativeRuleSpec extends Required<Omit<RuleDocumentation, "since">> {
|