@sarj/eslint-plugin 8.0.0 → 9.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.d.cts CHANGED
@@ -76,7 +76,9 @@ interface RuleOptions {
76
76
  }
77
77
 
78
78
  /**
79
- * @fileoverview _renames — a renamed rule keeps its old name registered as a deprecated alias, because a name that simply vanishes reads as growth to a shrink-only baseline.
79
+ * @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.
80
+ *
81
+ * It feeds `scripts/sync-rule-ledger.py`, which turns each entry into a `renamed` row of the shipped `rule-ledger.json` that `sarj-lint-configs doctor` reads.
80
82
  *
81
83
  * Evidence: https://github.com/sarj-ai/standards/blob/main/docs/rules/_renames.md
82
84
  */
@@ -269,7 +271,6 @@ declare const rules: {
269
271
  name: string;
270
272
  };
271
273
  };
272
- type RuleModule = (typeof rules)[keyof typeof rules];
273
274
  declare const recommendedRules: {
274
275
  readonly "@sarj/enforce-file-structure": "warn";
275
276
  readonly "@sarj/no-async-callback-in-wait-for": "warn";
@@ -391,13 +392,9 @@ type FlatPreset = {
391
392
  declare const plugin: {
392
393
  meta: {
393
394
  readonly name: "@sarj/eslint-plugin";
394
- readonly version: "8.0.0";
395
+ readonly version: "9.0.0";
395
396
  };
396
397
  rules: {
397
- "jsdoc-restates-signature": RuleModule;
398
- "no-async-callback-in-waitfor": RuleModule;
399
- "strict-test-assertions": RuleModule;
400
- "trailing-value-narration": RuleModule;
401
398
  "enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
402
399
  name: string;
403
400
  };
package/dist/index.d.ts CHANGED
@@ -76,7 +76,9 @@ interface RuleOptions {
76
76
  }
77
77
 
78
78
  /**
79
- * @fileoverview _renames — a renamed rule keeps its old name registered as a deprecated alias, because a name that simply vanishes reads as growth to a shrink-only baseline.
79
+ * @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.
80
+ *
81
+ * It feeds `scripts/sync-rule-ledger.py`, which turns each entry into a `renamed` row of the shipped `rule-ledger.json` that `sarj-lint-configs doctor` reads.
80
82
  *
81
83
  * Evidence: https://github.com/sarj-ai/standards/blob/main/docs/rules/_renames.md
82
84
  */
@@ -269,7 +271,6 @@ declare const rules: {
269
271
  name: string;
270
272
  };
271
273
  };
272
- type RuleModule = (typeof rules)[keyof typeof rules];
273
274
  declare const recommendedRules: {
274
275
  readonly "@sarj/enforce-file-structure": "warn";
275
276
  readonly "@sarj/no-async-callback-in-wait-for": "warn";
@@ -391,13 +392,9 @@ type FlatPreset = {
391
392
  declare const plugin: {
392
393
  meta: {
393
394
  readonly name: "@sarj/eslint-plugin";
394
- readonly version: "8.0.0";
395
+ readonly version: "9.0.0";
395
396
  };
396
397
  rules: {
397
- "jsdoc-restates-signature": RuleModule;
398
- "no-async-callback-in-waitfor": RuleModule;
399
- "strict-test-assertions": RuleModule;
400
- "trailing-value-narration": RuleModule;
401
398
  "enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
402
399
  name: string;
403
400
  };
package/dist/index.js CHANGED
@@ -9254,29 +9254,8 @@ var rules = {
9254
9254
  };
9255
9255
  var meta = {
9256
9256
  name: "@sarj/eslint-plugin",
9257
- version: "8.0.0"
9257
+ version: "9.0.0"
9258
9258
  };
9259
- var renames = renamedRules;
9260
- var deprecatedAliases = Object.fromEntries(
9261
- Object.entries(renames).map(([from, to]) => {
9262
- const rule = rules[to];
9263
- return [
9264
- from,
9265
- {
9266
- ...rule,
9267
- meta: {
9268
- ...rule.meta,
9269
- deprecated: {
9270
- message: `Renamed to \`@sarj/${to}\`.`,
9271
- replacedBy: [{ rule: { name: `@sarj/${to}` } }],
9272
- deprecatedSince: meta.version
9273
- }
9274
- }
9275
- }
9276
- ];
9277
- })
9278
- );
9279
- var allRules = { ...rules, ...deprecatedAliases };
9280
9259
  var recommendedRules = {
9281
9260
  "@sarj/enforce-file-structure": "warn",
9282
9261
  "@sarj/no-async-callback-in-wait-for": "warn",
@@ -9383,7 +9362,7 @@ var strictRules = {
9383
9362
  };
9384
9363
  var plugin = {
9385
9364
  meta,
9386
- rules: allRules,
9365
+ rules,
9387
9366
  // Withdrawn names travel WITH the plugin so a consumer's migration script and
9388
9367
  // this repo's gates read one map, not two. See src/rules/_retired.ts.
9389
9368
  retiredRules,