@sarj/eslint-plugin 15.17.18 → 15.20.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 +2610 -2154
- package/dist/index.d.cts +41 -2
- package/dist/index.d.ts +41 -2
- package/dist/index.js +2601 -2142
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -181,6 +181,15 @@ interface RuleOptions {
|
|
|
181
181
|
readonly methods?: readonly string[];
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
/**
|
|
185
|
+
* @fileoverview _jsx-accessibility — scope-aware JSX names and accessible content are shared across rules.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
interface ComponentImport {
|
|
189
|
+
readonly module: string;
|
|
190
|
+
readonly export: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
184
193
|
/**
|
|
185
194
|
* @fileoverview _renames — every rule this plugin has renamed, old name to new; the old names no longer resolve, so this map is what says what to write instead.
|
|
186
195
|
*
|
|
@@ -196,6 +205,16 @@ declare const RENAMED_RULES: {
|
|
|
196
205
|
};
|
|
197
206
|
|
|
198
207
|
declare const RULES: {
|
|
208
|
+
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
209
|
+
readonly components?: readonly ComponentImport[];
|
|
210
|
+
readonly iconModules?: readonly string[];
|
|
211
|
+
}?], "missingName">;
|
|
212
|
+
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
213
|
+
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
214
|
+
readonly enabled?: boolean;
|
|
215
|
+
readonly checkInsets?: boolean;
|
|
216
|
+
readonly allowUtilities?: readonly string[];
|
|
217
|
+
}?], "physicalUtility">;
|
|
199
218
|
readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
|
|
200
219
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
201
220
|
readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
|
|
@@ -325,8 +344,13 @@ declare const RULES: {
|
|
|
325
344
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
326
345
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
327
346
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
328
|
-
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/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"];
|
|
347
|
+
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/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"];
|
|
329
348
|
declare const RECOMMENDED_RULES: {
|
|
349
|
+
readonly "@sarj/require-button-accessible-name": "error";
|
|
350
|
+
readonly "@sarj/require-svg-accessible-name": "error";
|
|
351
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
352
|
+
readonly enabled: false;
|
|
353
|
+
}];
|
|
330
354
|
readonly "no-restricted-imports": readonly ["error", {
|
|
331
355
|
readonly paths: {
|
|
332
356
|
name: "request" | "node-fetch" | "cross-fetch" | "isomorphic-fetch" | "axios" | "moment" | "dayjs" | "lodash" | "lodash-es" | "underscore" | "classnames" | "joi" | "yup" | "superstruct" | "io-ts" | "runtypes" | "jsonwebtoken" | "express" | "koa" | "jest" | "mocha" | "sinon" | "commander" | "yargs" | "bluebird" | "rimraf" | "fs-extra" | "abort-controller" | "querystring" | "dotenv" | "chalk" | "faker" | "node-sass" | "tslint";
|
|
@@ -612,6 +636,11 @@ declare const RECOMMENDED_RULES: {
|
|
|
612
636
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
613
637
|
};
|
|
614
638
|
declare const STRICT_RULES: {
|
|
639
|
+
readonly "@sarj/require-button-accessible-name": "error";
|
|
640
|
+
readonly "@sarj/require-svg-accessible-name": "error";
|
|
641
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
642
|
+
readonly enabled: false;
|
|
643
|
+
}];
|
|
615
644
|
readonly "no-restricted-imports": readonly ["error", {
|
|
616
645
|
readonly paths: {
|
|
617
646
|
name: "request" | "node-fetch" | "cross-fetch" | "isomorphic-fetch" | "axios" | "moment" | "dayjs" | "lodash" | "lodash-es" | "underscore" | "classnames" | "joi" | "yup" | "superstruct" | "io-ts" | "runtypes" | "jsonwebtoken" | "express" | "koa" | "jest" | "mocha" | "sinon" | "commander" | "yargs" | "bluebird" | "rimraf" | "fs-extra" | "abort-controller" | "querystring" | "dotenv" | "chalk" | "faker" | "node-sass" | "tslint";
|
|
@@ -908,9 +937,19 @@ type FlatPreset = {
|
|
|
908
937
|
declare const PLUGIN: {
|
|
909
938
|
readonly meta: {
|
|
910
939
|
readonly name: "@sarj/eslint-plugin";
|
|
911
|
-
readonly version: "15.
|
|
940
|
+
readonly version: "15.20.0";
|
|
912
941
|
};
|
|
913
942
|
readonly rules: {
|
|
943
|
+
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
944
|
+
readonly components?: readonly ComponentImport[];
|
|
945
|
+
readonly iconModules?: readonly string[];
|
|
946
|
+
}?], "missingName">;
|
|
947
|
+
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
948
|
+
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
949
|
+
readonly enabled?: boolean;
|
|
950
|
+
readonly checkInsets?: boolean;
|
|
951
|
+
readonly allowUtilities?: readonly string[];
|
|
952
|
+
}?], "physicalUtility">;
|
|
914
953
|
readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
|
|
915
954
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
916
955
|
readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
|
package/dist/index.d.ts
CHANGED
|
@@ -181,6 +181,15 @@ interface RuleOptions {
|
|
|
181
181
|
readonly methods?: readonly string[];
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
/**
|
|
185
|
+
* @fileoverview _jsx-accessibility — scope-aware JSX names and accessible content are shared across rules.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
interface ComponentImport {
|
|
189
|
+
readonly module: string;
|
|
190
|
+
readonly export: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
184
193
|
/**
|
|
185
194
|
* @fileoverview _renames — every rule this plugin has renamed, old name to new; the old names no longer resolve, so this map is what says what to write instead.
|
|
186
195
|
*
|
|
@@ -196,6 +205,16 @@ declare const RENAMED_RULES: {
|
|
|
196
205
|
};
|
|
197
206
|
|
|
198
207
|
declare const RULES: {
|
|
208
|
+
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
209
|
+
readonly components?: readonly ComponentImport[];
|
|
210
|
+
readonly iconModules?: readonly string[];
|
|
211
|
+
}?], "missingName">;
|
|
212
|
+
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
213
|
+
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
214
|
+
readonly enabled?: boolean;
|
|
215
|
+
readonly checkInsets?: boolean;
|
|
216
|
+
readonly allowUtilities?: readonly string[];
|
|
217
|
+
}?], "physicalUtility">;
|
|
199
218
|
readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
|
|
200
219
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
201
220
|
readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
|
|
@@ -325,8 +344,13 @@ declare const RULES: {
|
|
|
325
344
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
326
345
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
327
346
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
328
|
-
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/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"];
|
|
347
|
+
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/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"];
|
|
329
348
|
declare const RECOMMENDED_RULES: {
|
|
349
|
+
readonly "@sarj/require-button-accessible-name": "error";
|
|
350
|
+
readonly "@sarj/require-svg-accessible-name": "error";
|
|
351
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
352
|
+
readonly enabled: false;
|
|
353
|
+
}];
|
|
330
354
|
readonly "no-restricted-imports": readonly ["error", {
|
|
331
355
|
readonly paths: {
|
|
332
356
|
name: "request" | "node-fetch" | "cross-fetch" | "isomorphic-fetch" | "axios" | "moment" | "dayjs" | "lodash" | "lodash-es" | "underscore" | "classnames" | "joi" | "yup" | "superstruct" | "io-ts" | "runtypes" | "jsonwebtoken" | "express" | "koa" | "jest" | "mocha" | "sinon" | "commander" | "yargs" | "bluebird" | "rimraf" | "fs-extra" | "abort-controller" | "querystring" | "dotenv" | "chalk" | "faker" | "node-sass" | "tslint";
|
|
@@ -612,6 +636,11 @@ declare const RECOMMENDED_RULES: {
|
|
|
612
636
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
613
637
|
};
|
|
614
638
|
declare const STRICT_RULES: {
|
|
639
|
+
readonly "@sarj/require-button-accessible-name": "error";
|
|
640
|
+
readonly "@sarj/require-svg-accessible-name": "error";
|
|
641
|
+
readonly "@sarj/prefer-logical-tailwind-utilities": readonly ["warn", {
|
|
642
|
+
readonly enabled: false;
|
|
643
|
+
}];
|
|
615
644
|
readonly "no-restricted-imports": readonly ["error", {
|
|
616
645
|
readonly paths: {
|
|
617
646
|
name: "request" | "node-fetch" | "cross-fetch" | "isomorphic-fetch" | "axios" | "moment" | "dayjs" | "lodash" | "lodash-es" | "underscore" | "classnames" | "joi" | "yup" | "superstruct" | "io-ts" | "runtypes" | "jsonwebtoken" | "express" | "koa" | "jest" | "mocha" | "sinon" | "commander" | "yargs" | "bluebird" | "rimraf" | "fs-extra" | "abort-controller" | "querystring" | "dotenv" | "chalk" | "faker" | "node-sass" | "tslint";
|
|
@@ -908,9 +937,19 @@ type FlatPreset = {
|
|
|
908
937
|
declare const PLUGIN: {
|
|
909
938
|
readonly meta: {
|
|
910
939
|
readonly name: "@sarj/eslint-plugin";
|
|
911
|
-
readonly version: "15.
|
|
940
|
+
readonly version: "15.20.0";
|
|
912
941
|
};
|
|
913
942
|
readonly rules: {
|
|
943
|
+
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
944
|
+
readonly components?: readonly ComponentImport[];
|
|
945
|
+
readonly iconModules?: readonly string[];
|
|
946
|
+
}?], "missingName">;
|
|
947
|
+
readonly "require-svg-accessible-name": DocumentedRule<readonly [], "missingName">;
|
|
948
|
+
readonly "prefer-logical-tailwind-utilities": DocumentedRule<readonly [{
|
|
949
|
+
readonly enabled?: boolean;
|
|
950
|
+
readonly checkInsets?: boolean;
|
|
951
|
+
readonly allowUtilities?: readonly string[];
|
|
952
|
+
}?], "physicalUtility">;
|
|
914
953
|
readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
|
|
915
954
|
readonly "iac-source-coupled-test": DocumentedRule<readonly [], "rawSourceOracle">;
|
|
916
955
|
readonly "duplicate-test-body": DocumentedRule<readonly [], "duplicateTestBody">;
|