@sarj/eslint-plugin 15.28.1 → 16.0.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 +371 -363
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +368 -360
- package/dist/rule-examples.cjs +4 -4
- package/dist/rule-examples.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { D as DocumentedRule } from './_docs-XCw_6XV9.cjs';
|
|
|
2
2
|
export { p as publicDocumentation } from './_docs-XCw_6XV9.cjs';
|
|
3
3
|
import '@typescript-eslint/utils';
|
|
4
4
|
|
|
5
|
-
/** @fileoverview _retired — burned rule names and their migration action. */
|
|
5
|
+
/** @fileoverview _retired-rules — burned rule names and their migration action. */
|
|
6
6
|
/** Why a name was withdrawn, and in which release. */
|
|
7
7
|
interface RetiredRule {
|
|
8
8
|
/** The plugin version whose release removed the rule. */
|
|
@@ -112,7 +112,7 @@ interface LocalizationOptions {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* @fileoverview
|
|
115
|
+
* @fileoverview _renamed-rules — 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.
|
|
116
116
|
*
|
|
117
117
|
* `code-standards maintain sync-ledger` turns each entry into the consumer-facing ledger row.
|
|
118
118
|
*
|
|
@@ -285,7 +285,7 @@ declare const RULES: {
|
|
|
285
285
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
286
286
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
287
287
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
288
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@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-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class"
|
|
288
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@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-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class"];
|
|
289
289
|
declare const RECOMMENDED_RULES: {
|
|
290
290
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
291
291
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -591,7 +591,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
591
591
|
readonly "@sarj/store-insert-requires-on-conflict": "error";
|
|
592
592
|
readonly "@sarj/stepdown": "error";
|
|
593
593
|
readonly "@sarj/source-coupled-test": "error";
|
|
594
|
-
readonly "@sarj/sole-export-matches-filename": "
|
|
594
|
+
readonly "@sarj/sole-export-matches-filename": "error";
|
|
595
595
|
readonly "@sarj/test-phase-label-comment": "error";
|
|
596
596
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
597
597
|
};
|
|
@@ -904,7 +904,7 @@ declare const STRICT_RULES: {
|
|
|
904
904
|
readonly "@sarj/store-insert-requires-on-conflict": "error";
|
|
905
905
|
readonly "@sarj/stepdown": "error";
|
|
906
906
|
readonly "@sarj/source-coupled-test": "error";
|
|
907
|
-
readonly "@sarj/sole-export-matches-filename": "
|
|
907
|
+
readonly "@sarj/sole-export-matches-filename": "error";
|
|
908
908
|
readonly "@sarj/test-phase-label-comment": "error";
|
|
909
909
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
910
910
|
};
|
|
@@ -916,7 +916,7 @@ type FlatPreset = {
|
|
|
916
916
|
declare const PLUGIN: {
|
|
917
917
|
readonly meta: {
|
|
918
918
|
readonly name: "@sarj/eslint-plugin";
|
|
919
|
-
readonly version: "
|
|
919
|
+
readonly version: "16.0.0";
|
|
920
920
|
};
|
|
921
921
|
readonly rules: {
|
|
922
922
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { D as DocumentedRule } from './_docs-XCw_6XV9.js';
|
|
|
2
2
|
export { p as publicDocumentation } from './_docs-XCw_6XV9.js';
|
|
3
3
|
import '@typescript-eslint/utils';
|
|
4
4
|
|
|
5
|
-
/** @fileoverview _retired — burned rule names and their migration action. */
|
|
5
|
+
/** @fileoverview _retired-rules — burned rule names and their migration action. */
|
|
6
6
|
/** Why a name was withdrawn, and in which release. */
|
|
7
7
|
interface RetiredRule {
|
|
8
8
|
/** The plugin version whose release removed the rule. */
|
|
@@ -112,7 +112,7 @@ interface LocalizationOptions {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* @fileoverview
|
|
115
|
+
* @fileoverview _renamed-rules — 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.
|
|
116
116
|
*
|
|
117
117
|
* `code-standards maintain sync-ledger` turns each entry into the consumer-facing ledger row.
|
|
118
118
|
*
|
|
@@ -285,7 +285,7 @@ declare const RULES: {
|
|
|
285
285
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
286
286
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
287
287
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
288
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@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-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class"
|
|
288
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-json-stringify-object-equality", "@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-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class"];
|
|
289
289
|
declare const RECOMMENDED_RULES: {
|
|
290
290
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
291
291
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -591,7 +591,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
591
591
|
readonly "@sarj/store-insert-requires-on-conflict": "error";
|
|
592
592
|
readonly "@sarj/stepdown": "error";
|
|
593
593
|
readonly "@sarj/source-coupled-test": "error";
|
|
594
|
-
readonly "@sarj/sole-export-matches-filename": "
|
|
594
|
+
readonly "@sarj/sole-export-matches-filename": "error";
|
|
595
595
|
readonly "@sarj/test-phase-label-comment": "error";
|
|
596
596
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
597
597
|
};
|
|
@@ -904,7 +904,7 @@ declare const STRICT_RULES: {
|
|
|
904
904
|
readonly "@sarj/store-insert-requires-on-conflict": "error";
|
|
905
905
|
readonly "@sarj/stepdown": "error";
|
|
906
906
|
readonly "@sarj/source-coupled-test": "error";
|
|
907
|
-
readonly "@sarj/sole-export-matches-filename": "
|
|
907
|
+
readonly "@sarj/sole-export-matches-filename": "error";
|
|
908
908
|
readonly "@sarj/test-phase-label-comment": "error";
|
|
909
909
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
910
910
|
};
|
|
@@ -916,7 +916,7 @@ type FlatPreset = {
|
|
|
916
916
|
declare const PLUGIN: {
|
|
917
917
|
readonly meta: {
|
|
918
918
|
readonly name: "@sarj/eslint-plugin";
|
|
919
|
-
readonly version: "
|
|
919
|
+
readonly version: "16.0.0";
|
|
920
920
|
};
|
|
921
921
|
readonly rules: {
|
|
922
922
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|