@sarj/eslint-plugin 15.21.0 → 15.22.0
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 +3201 -2752
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +3109 -2660
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -211,6 +211,7 @@ declare const RENAMED_RULES: {
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
declare const RULES: {
|
|
214
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
214
215
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
215
216
|
readonly components?: readonly ComponentImport[];
|
|
216
217
|
readonly iconModules?: readonly string[];
|
|
@@ -242,6 +243,7 @@ declare const RULES: {
|
|
|
242
243
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
243
244
|
ignoreFiles?: readonly string[];
|
|
244
245
|
}?], "noEnum">;
|
|
246
|
+
readonly "no-excessive-cognitive-complexity": DocumentedRule<[], "excessiveComplexity">;
|
|
245
247
|
readonly "no-fat-try-blocks": DocumentedRule<readonly [RuleOptions$1?], "fatTryBlock">;
|
|
246
248
|
readonly "no-hand-rolled-sleep": DocumentedRule<readonly [{
|
|
247
249
|
allowIn?: readonly string[];
|
|
@@ -360,6 +362,7 @@ declare const APPLICATION_ONLY_RULES: readonly [];
|
|
|
360
362
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
361
363
|
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-detached-global-fetch", "@sarj/no-in-operator-on-built-in-collections", "@sarj/no-json-stringify-object-equality", "@sarj/no-redundant-optional-array-default", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/no-unlocalized-jsx-attributes", "@sarj/no-unlocalized-jsx-text", "@sarj/no-unlocalized-toast", "@sarj/prefer-logical-tailwind-utilities", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
362
364
|
declare const RECOMMENDED_RULES: {
|
|
365
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
363
366
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
364
367
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
365
368
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -560,6 +563,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
560
563
|
readonly "@sarj/prefer-native-random-uuid": "error";
|
|
561
564
|
readonly "@sarj/prefer-shadcn-primitives": "error";
|
|
562
565
|
readonly "@sarj/excessive-commentary": "warn";
|
|
566
|
+
readonly "@sarj/no-excessive-cognitive-complexity": "error";
|
|
563
567
|
readonly "@sarj/interface-contract-members-private": "error";
|
|
564
568
|
readonly "@sarj/iac-source-coupled-test": "error";
|
|
565
569
|
readonly "@sarj/duplicate-test-body": "error";
|
|
@@ -659,6 +663,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
659
663
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
660
664
|
};
|
|
661
665
|
declare const STRICT_RULES: {
|
|
666
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
662
667
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
663
668
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
664
669
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -859,6 +864,7 @@ declare const STRICT_RULES: {
|
|
|
859
864
|
readonly "@sarj/prefer-native-random-uuid": "error";
|
|
860
865
|
readonly "@sarj/prefer-shadcn-primitives": "error";
|
|
861
866
|
readonly "@sarj/excessive-commentary": "warn";
|
|
867
|
+
readonly "@sarj/no-excessive-cognitive-complexity": "error";
|
|
862
868
|
readonly "@sarj/interface-contract-members-private": "error";
|
|
863
869
|
readonly "@sarj/iac-source-coupled-test": "error";
|
|
864
870
|
readonly "@sarj/duplicate-test-body": "error";
|
|
@@ -969,9 +975,10 @@ type FlatPreset = {
|
|
|
969
975
|
declare const PLUGIN: {
|
|
970
976
|
readonly meta: {
|
|
971
977
|
readonly name: "@sarj/eslint-plugin";
|
|
972
|
-
readonly version: "15.
|
|
978
|
+
readonly version: "15.22.0";
|
|
973
979
|
};
|
|
974
980
|
readonly rules: {
|
|
981
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
975
982
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
976
983
|
readonly components?: readonly ComponentImport[];
|
|
977
984
|
readonly iconModules?: readonly string[];
|
|
@@ -1003,6 +1010,7 @@ declare const PLUGIN: {
|
|
|
1003
1010
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
1004
1011
|
ignoreFiles?: readonly string[];
|
|
1005
1012
|
}?], "noEnum">;
|
|
1013
|
+
readonly "no-excessive-cognitive-complexity": DocumentedRule<[], "excessiveComplexity">;
|
|
1006
1014
|
readonly "no-fat-try-blocks": DocumentedRule<readonly [RuleOptions$1?], "fatTryBlock">;
|
|
1007
1015
|
readonly "no-hand-rolled-sleep": DocumentedRule<readonly [{
|
|
1008
1016
|
allowIn?: readonly string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -211,6 +211,7 @@ declare const RENAMED_RULES: {
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
declare const RULES: {
|
|
214
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
214
215
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
215
216
|
readonly components?: readonly ComponentImport[];
|
|
216
217
|
readonly iconModules?: readonly string[];
|
|
@@ -242,6 +243,7 @@ declare const RULES: {
|
|
|
242
243
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
243
244
|
ignoreFiles?: readonly string[];
|
|
244
245
|
}?], "noEnum">;
|
|
246
|
+
readonly "no-excessive-cognitive-complexity": DocumentedRule<[], "excessiveComplexity">;
|
|
245
247
|
readonly "no-fat-try-blocks": DocumentedRule<readonly [RuleOptions$1?], "fatTryBlock">;
|
|
246
248
|
readonly "no-hand-rolled-sleep": DocumentedRule<readonly [{
|
|
247
249
|
allowIn?: readonly string[];
|
|
@@ -360,6 +362,7 @@ declare const APPLICATION_ONLY_RULES: readonly [];
|
|
|
360
362
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
361
363
|
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-detached-global-fetch", "@sarj/no-in-operator-on-built-in-collections", "@sarj/no-json-stringify-object-equality", "@sarj/no-redundant-optional-array-default", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/no-unlocalized-jsx-attributes", "@sarj/no-unlocalized-jsx-text", "@sarj/no-unlocalized-toast", "@sarj/prefer-logical-tailwind-utilities", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-named-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
362
364
|
declare const RECOMMENDED_RULES: {
|
|
365
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
363
366
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
364
367
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
365
368
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -560,6 +563,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
560
563
|
readonly "@sarj/prefer-native-random-uuid": "error";
|
|
561
564
|
readonly "@sarj/prefer-shadcn-primitives": "error";
|
|
562
565
|
readonly "@sarj/excessive-commentary": "warn";
|
|
566
|
+
readonly "@sarj/no-excessive-cognitive-complexity": "error";
|
|
563
567
|
readonly "@sarj/interface-contract-members-private": "error";
|
|
564
568
|
readonly "@sarj/iac-source-coupled-test": "error";
|
|
565
569
|
readonly "@sarj/duplicate-test-body": "error";
|
|
@@ -659,6 +663,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
659
663
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
660
664
|
};
|
|
661
665
|
declare const STRICT_RULES: {
|
|
666
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
662
667
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
663
668
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
664
669
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -859,6 +864,7 @@ declare const STRICT_RULES: {
|
|
|
859
864
|
readonly "@sarj/prefer-native-random-uuid": "error";
|
|
860
865
|
readonly "@sarj/prefer-shadcn-primitives": "error";
|
|
861
866
|
readonly "@sarj/excessive-commentary": "warn";
|
|
867
|
+
readonly "@sarj/no-excessive-cognitive-complexity": "error";
|
|
862
868
|
readonly "@sarj/interface-contract-members-private": "error";
|
|
863
869
|
readonly "@sarj/iac-source-coupled-test": "error";
|
|
864
870
|
readonly "@sarj/duplicate-test-body": "error";
|
|
@@ -969,9 +975,10 @@ type FlatPreset = {
|
|
|
969
975
|
declare const PLUGIN: {
|
|
970
976
|
readonly meta: {
|
|
971
977
|
readonly name: "@sarj/eslint-plugin";
|
|
972
|
-
readonly version: "15.
|
|
978
|
+
readonly version: "15.22.0";
|
|
973
979
|
};
|
|
974
980
|
readonly rules: {
|
|
981
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
975
982
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
976
983
|
readonly components?: readonly ComponentImport[];
|
|
977
984
|
readonly iconModules?: readonly string[];
|
|
@@ -1003,6 +1010,7 @@ declare const PLUGIN: {
|
|
|
1003
1010
|
readonly "no-enum": DocumentedRule<readonly [{
|
|
1004
1011
|
ignoreFiles?: readonly string[];
|
|
1005
1012
|
}?], "noEnum">;
|
|
1013
|
+
readonly "no-excessive-cognitive-complexity": DocumentedRule<[], "excessiveComplexity">;
|
|
1006
1014
|
readonly "no-fat-try-blocks": DocumentedRule<readonly [RuleOptions$1?], "fatTryBlock">;
|
|
1007
1015
|
readonly "no-hand-rolled-sleep": DocumentedRule<readonly [{
|
|
1008
1016
|
allowIn?: readonly string[];
|