@sarj/eslint-plugin 15.21.1 → 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 +2154 -2098
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +2059 -2003
- 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[];
|
|
@@ -361,6 +362,7 @@ declare const APPLICATION_ONLY_RULES: readonly [];
|
|
|
361
362
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
362
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"];
|
|
363
364
|
declare const RECOMMENDED_RULES: {
|
|
365
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
364
366
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
365
367
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
366
368
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -661,6 +663,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
661
663
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
662
664
|
};
|
|
663
665
|
declare const STRICT_RULES: {
|
|
666
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
664
667
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
665
668
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
666
669
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -972,9 +975,10 @@ type FlatPreset = {
|
|
|
972
975
|
declare const PLUGIN: {
|
|
973
976
|
readonly meta: {
|
|
974
977
|
readonly name: "@sarj/eslint-plugin";
|
|
975
|
-
readonly version: "15.
|
|
978
|
+
readonly version: "15.22.0";
|
|
976
979
|
};
|
|
977
980
|
readonly rules: {
|
|
981
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
978
982
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
979
983
|
readonly components?: readonly ComponentImport[];
|
|
980
984
|
readonly iconModules?: 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[];
|
|
@@ -361,6 +362,7 @@ declare const APPLICATION_ONLY_RULES: readonly [];
|
|
|
361
362
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
362
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"];
|
|
363
364
|
declare const RECOMMENDED_RULES: {
|
|
365
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
364
366
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
365
367
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
366
368
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -661,6 +663,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
661
663
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
662
664
|
};
|
|
663
665
|
declare const STRICT_RULES: {
|
|
666
|
+
readonly "@sarj/no-known-value-widening": "error";
|
|
664
667
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
665
668
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
666
669
|
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
@@ -972,9 +975,10 @@ type FlatPreset = {
|
|
|
972
975
|
declare const PLUGIN: {
|
|
973
976
|
readonly meta: {
|
|
974
977
|
readonly name: "@sarj/eslint-plugin";
|
|
975
|
-
readonly version: "15.
|
|
978
|
+
readonly version: "15.22.0";
|
|
976
979
|
};
|
|
977
980
|
readonly rules: {
|
|
981
|
+
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
978
982
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
979
983
|
readonly components?: readonly ComponentImport[];
|
|
980
984
|
readonly iconModules?: readonly string[];
|