@sarj/eslint-plugin 15.22.0 → 15.23.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 +2110 -2021
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +2115 -2026
- 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-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
214
215
|
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
215
216
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
216
217
|
readonly components?: readonly ComponentImport[];
|
|
@@ -362,6 +363,7 @@ declare const APPLICATION_ONLY_RULES: readonly [];
|
|
|
362
363
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
363
364
|
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"];
|
|
364
365
|
declare const RECOMMENDED_RULES: {
|
|
366
|
+
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
365
367
|
readonly "@sarj/no-known-value-widening": "error";
|
|
366
368
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
367
369
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
@@ -663,6 +665,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
663
665
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
664
666
|
};
|
|
665
667
|
declare const STRICT_RULES: {
|
|
668
|
+
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
666
669
|
readonly "@sarj/no-known-value-widening": "error";
|
|
667
670
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
668
671
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
@@ -975,9 +978,10 @@ type FlatPreset = {
|
|
|
975
978
|
declare const PLUGIN: {
|
|
976
979
|
readonly meta: {
|
|
977
980
|
readonly name: "@sarj/eslint-plugin";
|
|
978
|
-
readonly version: "15.
|
|
981
|
+
readonly version: "15.23.0";
|
|
979
982
|
};
|
|
980
983
|
readonly rules: {
|
|
984
|
+
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
981
985
|
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
982
986
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
983
987
|
readonly components?: readonly ComponentImport[];
|
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-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
214
215
|
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
215
216
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
216
217
|
readonly components?: readonly ComponentImport[];
|
|
@@ -362,6 +363,7 @@ declare const APPLICATION_ONLY_RULES: readonly [];
|
|
|
362
363
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
363
364
|
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"];
|
|
364
365
|
declare const RECOMMENDED_RULES: {
|
|
366
|
+
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
365
367
|
readonly "@sarj/no-known-value-widening": "error";
|
|
366
368
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
367
369
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
@@ -663,6 +665,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
663
665
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
664
666
|
};
|
|
665
667
|
declare const STRICT_RULES: {
|
|
668
|
+
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
666
669
|
readonly "@sarj/no-known-value-widening": "error";
|
|
667
670
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
668
671
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
@@ -975,9 +978,10 @@ type FlatPreset = {
|
|
|
975
978
|
declare const PLUGIN: {
|
|
976
979
|
readonly meta: {
|
|
977
980
|
readonly name: "@sarj/eslint-plugin";
|
|
978
|
-
readonly version: "15.
|
|
981
|
+
readonly version: "15.23.0";
|
|
979
982
|
};
|
|
980
983
|
readonly rules: {
|
|
984
|
+
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
981
985
|
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
982
986
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
983
987
|
readonly components?: readonly ComponentImport[];
|