@sarj/eslint-plugin 15.25.1 → 15.26.1
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.cjs +2058 -1957
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1945 -1844
- package/package.json +19 -17
package/dist/index.d.cts
CHANGED
|
@@ -17,6 +17,7 @@ declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
|
|
|
17
17
|
|
|
18
18
|
type RuleCategory = "architecture" | "correctness" | "maintainability" | "performance" | "security" | "style" | "testing";
|
|
19
19
|
type AutofixPolicy = "none" | "safe" | "suggestion";
|
|
20
|
+
type DefaultLevel = "error" | "warning";
|
|
20
21
|
type ExampleOutcome = "match" | "no-match";
|
|
21
22
|
interface ExampleFile {
|
|
22
23
|
readonly path: string;
|
|
@@ -40,6 +41,7 @@ interface RuleDocumentation {
|
|
|
40
41
|
readonly rationale: string;
|
|
41
42
|
readonly remediation: string;
|
|
42
43
|
readonly category: RuleCategory;
|
|
44
|
+
readonly defaultLevel?: DefaultLevel;
|
|
43
45
|
readonly languages?: readonly "typescript"[];
|
|
44
46
|
readonly autofix?: AutofixPolicy;
|
|
45
47
|
readonly aliases?: readonly string[];
|
|
@@ -69,6 +71,7 @@ interface PublicRuleSpec {
|
|
|
69
71
|
readonly rationale: string;
|
|
70
72
|
readonly remediation: string;
|
|
71
73
|
readonly category: RuleCategory;
|
|
74
|
+
readonly defaultLevel: DefaultLevel;
|
|
72
75
|
readonly languages: readonly "typescript"[];
|
|
73
76
|
readonly autofix: AutofixPolicy;
|
|
74
77
|
readonly aliases: readonly string[];
|
|
@@ -220,6 +223,7 @@ declare const RULES: {
|
|
|
220
223
|
readonly components?: readonly ComponentImport[];
|
|
221
224
|
readonly iconModules?: readonly string[];
|
|
222
225
|
}?], "missingName">;
|
|
226
|
+
readonly "require-camelcase-properties": DocumentedRule<readonly [], "requireCamelcaseProperty">;
|
|
223
227
|
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
224
228
|
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
225
229
|
readonly enabled?: boolean;
|
|
@@ -368,7 +372,7 @@ declare const RULES: {
|
|
|
368
372
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
369
373
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
370
374
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
371
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
375
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
372
376
|
declare const RECOMMENDED_RULES: {
|
|
373
377
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
374
378
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -376,6 +380,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
376
380
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
377
381
|
readonly "@sarj/no-known-value-widening": "error";
|
|
378
382
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
383
|
+
readonly "@sarj/require-camelcase-properties": "warn";
|
|
379
384
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
380
385
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
381
386
|
readonly enabled: false;
|
|
@@ -683,6 +688,7 @@ declare const STRICT_RULES: {
|
|
|
683
688
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
684
689
|
readonly "@sarj/no-known-value-widening": "error";
|
|
685
690
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
691
|
+
readonly "@sarj/require-camelcase-properties": "warn";
|
|
686
692
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
687
693
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
688
694
|
readonly enabled: false;
|
|
@@ -995,7 +1001,7 @@ type FlatPreset = {
|
|
|
995
1001
|
declare const PLUGIN: {
|
|
996
1002
|
readonly meta: {
|
|
997
1003
|
readonly name: "@sarj/eslint-plugin";
|
|
998
|
-
readonly version: "15.
|
|
1004
|
+
readonly version: "15.26.1";
|
|
999
1005
|
};
|
|
1000
1006
|
readonly rules: {
|
|
1001
1007
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
@@ -1007,6 +1013,7 @@ declare const PLUGIN: {
|
|
|
1007
1013
|
readonly components?: readonly ComponentImport[];
|
|
1008
1014
|
readonly iconModules?: readonly string[];
|
|
1009
1015
|
}?], "missingName">;
|
|
1016
|
+
readonly "require-camelcase-properties": DocumentedRule<readonly [], "requireCamelcaseProperty">;
|
|
1010
1017
|
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
1011
1018
|
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
1012
1019
|
readonly enabled?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
|
|
|
17
17
|
|
|
18
18
|
type RuleCategory = "architecture" | "correctness" | "maintainability" | "performance" | "security" | "style" | "testing";
|
|
19
19
|
type AutofixPolicy = "none" | "safe" | "suggestion";
|
|
20
|
+
type DefaultLevel = "error" | "warning";
|
|
20
21
|
type ExampleOutcome = "match" | "no-match";
|
|
21
22
|
interface ExampleFile {
|
|
22
23
|
readonly path: string;
|
|
@@ -40,6 +41,7 @@ interface RuleDocumentation {
|
|
|
40
41
|
readonly rationale: string;
|
|
41
42
|
readonly remediation: string;
|
|
42
43
|
readonly category: RuleCategory;
|
|
44
|
+
readonly defaultLevel?: DefaultLevel;
|
|
43
45
|
readonly languages?: readonly "typescript"[];
|
|
44
46
|
readonly autofix?: AutofixPolicy;
|
|
45
47
|
readonly aliases?: readonly string[];
|
|
@@ -69,6 +71,7 @@ interface PublicRuleSpec {
|
|
|
69
71
|
readonly rationale: string;
|
|
70
72
|
readonly remediation: string;
|
|
71
73
|
readonly category: RuleCategory;
|
|
74
|
+
readonly defaultLevel: DefaultLevel;
|
|
72
75
|
readonly languages: readonly "typescript"[];
|
|
73
76
|
readonly autofix: AutofixPolicy;
|
|
74
77
|
readonly aliases: readonly string[];
|
|
@@ -220,6 +223,7 @@ declare const RULES: {
|
|
|
220
223
|
readonly components?: readonly ComponentImport[];
|
|
221
224
|
readonly iconModules?: readonly string[];
|
|
222
225
|
}?], "missingName">;
|
|
226
|
+
readonly "require-camelcase-properties": DocumentedRule<readonly [], "requireCamelcaseProperty">;
|
|
223
227
|
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
224
228
|
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
225
229
|
readonly enabled?: boolean;
|
|
@@ -368,7 +372,7 @@ declare const RULES: {
|
|
|
368
372
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
369
373
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
370
374
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
371
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
375
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
372
376
|
declare const RECOMMENDED_RULES: {
|
|
373
377
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
374
378
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -376,6 +380,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
376
380
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
377
381
|
readonly "@sarj/no-known-value-widening": "error";
|
|
378
382
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
383
|
+
readonly "@sarj/require-camelcase-properties": "warn";
|
|
379
384
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
380
385
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
381
386
|
readonly enabled: false;
|
|
@@ -683,6 +688,7 @@ declare const STRICT_RULES: {
|
|
|
683
688
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
684
689
|
readonly "@sarj/no-known-value-widening": "error";
|
|
685
690
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
691
|
+
readonly "@sarj/require-camelcase-properties": "warn";
|
|
686
692
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
687
693
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["error", {
|
|
688
694
|
readonly enabled: false;
|
|
@@ -995,7 +1001,7 @@ type FlatPreset = {
|
|
|
995
1001
|
declare const PLUGIN: {
|
|
996
1002
|
readonly meta: {
|
|
997
1003
|
readonly name: "@sarj/eslint-plugin";
|
|
998
|
-
readonly version: "15.
|
|
1004
|
+
readonly version: "15.26.1";
|
|
999
1005
|
};
|
|
1000
1006
|
readonly rules: {
|
|
1001
1007
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
@@ -1007,6 +1013,7 @@ declare const PLUGIN: {
|
|
|
1007
1013
|
readonly components?: readonly ComponentImport[];
|
|
1008
1014
|
readonly iconModules?: readonly string[];
|
|
1009
1015
|
}?], "missingName">;
|
|
1016
|
+
readonly "require-camelcase-properties": DocumentedRule<readonly [], "requireCamelcaseProperty">;
|
|
1010
1017
|
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
1011
1018
|
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
1012
1019
|
readonly enabled?: boolean;
|