@sarj/eslint-plugin 15.21.1 → 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 +2252 -2107
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +2255 -2110
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -211,6 +211,8 @@ declare const RENAMED_RULES: {
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
declare const RULES: {
|
|
214
|
+
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
215
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
214
216
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
215
217
|
readonly components?: readonly ComponentImport[];
|
|
216
218
|
readonly iconModules?: readonly string[];
|
|
@@ -361,6 +363,8 @@ declare const APPLICATION_ONLY_RULES: readonly [];
|
|
|
361
363
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
362
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"];
|
|
363
365
|
declare const RECOMMENDED_RULES: {
|
|
366
|
+
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
367
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
364
368
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
365
369
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
366
370
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -661,6 +665,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
661
665
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
662
666
|
};
|
|
663
667
|
declare const STRICT_RULES: {
|
|
668
|
+
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
669
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
664
670
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
665
671
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
666
672
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -972,9 +978,11 @@ type FlatPreset = {
|
|
|
972
978
|
declare const PLUGIN: {
|
|
973
979
|
readonly meta: {
|
|
974
980
|
readonly name: "@sarj/eslint-plugin";
|
|
975
|
-
readonly version: "15.
|
|
981
|
+
readonly version: "15.23.0";
|
|
976
982
|
};
|
|
977
983
|
readonly rules: {
|
|
984
|
+
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
985
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
978
986
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
979
987
|
readonly components?: readonly ComponentImport[];
|
|
980
988
|
readonly iconModules?: readonly string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ declare const RENAMED_RULES: {
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
declare const RULES: {
|
|
214
|
+
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
215
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
214
216
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
215
217
|
readonly components?: readonly ComponentImport[];
|
|
216
218
|
readonly iconModules?: readonly string[];
|
|
@@ -361,6 +363,8 @@ declare const APPLICATION_ONLY_RULES: readonly [];
|
|
|
361
363
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
362
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"];
|
|
363
365
|
declare const RECOMMENDED_RULES: {
|
|
366
|
+
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
367
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
364
368
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
365
369
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
366
370
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -661,6 +665,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
661
665
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
662
666
|
};
|
|
663
667
|
declare const STRICT_RULES: {
|
|
668
|
+
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
669
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
664
670
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
665
671
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
666
672
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -972,9 +978,11 @@ type FlatPreset = {
|
|
|
972
978
|
declare const PLUGIN: {
|
|
973
979
|
readonly meta: {
|
|
974
980
|
readonly name: "@sarj/eslint-plugin";
|
|
975
|
-
readonly version: "15.
|
|
981
|
+
readonly version: "15.23.0";
|
|
976
982
|
};
|
|
977
983
|
readonly rules: {
|
|
984
|
+
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
985
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
978
986
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
979
987
|
readonly components?: readonly ComponentImport[];
|
|
980
988
|
readonly iconModules?: readonly string[];
|