@sarj/eslint-plugin 7.1.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/README.md +10 -7
- package/dist/index.cjs +351 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -8
- package/dist/index.d.ts +20 -8
- package/dist/index.js +351 -91
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @fileoverview _retired — a withdrawn rule name is burned, not recycled, because a consumer's `eslint-disable` comment or suppressions entry still names it.
|
|
5
|
+
*
|
|
6
|
+
* Evidence: https://github.com/sarj-ai/standards/blob/main/docs/rules/_retired.md
|
|
7
|
+
*/
|
|
8
|
+
/** Why a name was withdrawn, and in which release. */
|
|
9
|
+
interface RetiredRule {
|
|
10
|
+
/** The plugin version whose release removed the rule. */
|
|
11
|
+
readonly removedIn: string;
|
|
12
|
+
/** One line a consumer can act on: why it went, and what (if anything) replaced it. */
|
|
13
|
+
readonly reason: string;
|
|
14
|
+
}
|
|
15
|
+
declare const retiredRules: Readonly<Record<string, RetiredRule>>;
|
|
16
|
+
|
|
3
17
|
/**
|
|
4
18
|
* @fileoverview _comment-wall — the shared judgement behind the comment-VOLUME rules: a run of member comments that mostly re-spell their members is a wall.
|
|
5
19
|
*
|
|
@@ -62,7 +76,9 @@ interface RuleOptions {
|
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
/**
|
|
65
|
-
* @fileoverview _renames —
|
|
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.
|
|
66
82
|
*
|
|
67
83
|
* Evidence: https://github.com/sarj-ai/standards/blob/main/docs/rules/_renames.md
|
|
68
84
|
*/
|
|
@@ -255,7 +271,6 @@ declare const rules: {
|
|
|
255
271
|
name: string;
|
|
256
272
|
};
|
|
257
273
|
};
|
|
258
|
-
type RuleModule = (typeof rules)[keyof typeof rules];
|
|
259
274
|
declare const recommendedRules: {
|
|
260
275
|
readonly "@sarj/enforce-file-structure": "warn";
|
|
261
276
|
readonly "@sarj/no-async-callback-in-wait-for": "warn";
|
|
@@ -377,13 +392,9 @@ type FlatPreset = {
|
|
|
377
392
|
declare const plugin: {
|
|
378
393
|
meta: {
|
|
379
394
|
readonly name: "@sarj/eslint-plugin";
|
|
380
|
-
readonly version: "
|
|
395
|
+
readonly version: "9.0.0";
|
|
381
396
|
};
|
|
382
397
|
rules: {
|
|
383
|
-
"jsdoc-restates-signature": RuleModule;
|
|
384
|
-
"no-async-callback-in-waitfor": RuleModule;
|
|
385
|
-
"strict-test-assertions": RuleModule;
|
|
386
|
-
"trailing-value-narration": RuleModule;
|
|
387
398
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
388
399
|
name: string;
|
|
389
400
|
};
|
|
@@ -565,10 +576,11 @@ declare const plugin: {
|
|
|
565
576
|
name: string;
|
|
566
577
|
};
|
|
567
578
|
};
|
|
579
|
+
retiredRules: Readonly<Record<string, RetiredRule>>;
|
|
568
580
|
configs: {
|
|
569
581
|
recommended: FlatPreset;
|
|
570
582
|
strict: FlatPreset;
|
|
571
583
|
};
|
|
572
584
|
};
|
|
573
585
|
|
|
574
|
-
export { plugin as default, recommendedRules, renamedRules, rules, strictRules };
|
|
586
|
+
export { type RetiredRule, plugin as default, recommendedRules, renamedRules, retiredRules, rules, strictRules };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @fileoverview _retired — a withdrawn rule name is burned, not recycled, because a consumer's `eslint-disable` comment or suppressions entry still names it.
|
|
5
|
+
*
|
|
6
|
+
* Evidence: https://github.com/sarj-ai/standards/blob/main/docs/rules/_retired.md
|
|
7
|
+
*/
|
|
8
|
+
/** Why a name was withdrawn, and in which release. */
|
|
9
|
+
interface RetiredRule {
|
|
10
|
+
/** The plugin version whose release removed the rule. */
|
|
11
|
+
readonly removedIn: string;
|
|
12
|
+
/** One line a consumer can act on: why it went, and what (if anything) replaced it. */
|
|
13
|
+
readonly reason: string;
|
|
14
|
+
}
|
|
15
|
+
declare const retiredRules: Readonly<Record<string, RetiredRule>>;
|
|
16
|
+
|
|
3
17
|
/**
|
|
4
18
|
* @fileoverview _comment-wall — the shared judgement behind the comment-VOLUME rules: a run of member comments that mostly re-spell their members is a wall.
|
|
5
19
|
*
|
|
@@ -62,7 +76,9 @@ interface RuleOptions {
|
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
/**
|
|
65
|
-
* @fileoverview _renames —
|
|
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.
|
|
66
82
|
*
|
|
67
83
|
* Evidence: https://github.com/sarj-ai/standards/blob/main/docs/rules/_renames.md
|
|
68
84
|
*/
|
|
@@ -255,7 +271,6 @@ declare const rules: {
|
|
|
255
271
|
name: string;
|
|
256
272
|
};
|
|
257
273
|
};
|
|
258
|
-
type RuleModule = (typeof rules)[keyof typeof rules];
|
|
259
274
|
declare const recommendedRules: {
|
|
260
275
|
readonly "@sarj/enforce-file-structure": "warn";
|
|
261
276
|
readonly "@sarj/no-async-callback-in-wait-for": "warn";
|
|
@@ -377,13 +392,9 @@ type FlatPreset = {
|
|
|
377
392
|
declare const plugin: {
|
|
378
393
|
meta: {
|
|
379
394
|
readonly name: "@sarj/eslint-plugin";
|
|
380
|
-
readonly version: "
|
|
395
|
+
readonly version: "9.0.0";
|
|
381
396
|
};
|
|
382
397
|
rules: {
|
|
383
|
-
"jsdoc-restates-signature": RuleModule;
|
|
384
|
-
"no-async-callback-in-waitfor": RuleModule;
|
|
385
|
-
"strict-test-assertions": RuleModule;
|
|
386
|
-
"trailing-value-narration": RuleModule;
|
|
387
398
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
388
399
|
name: string;
|
|
389
400
|
};
|
|
@@ -565,10 +576,11 @@ declare const plugin: {
|
|
|
565
576
|
name: string;
|
|
566
577
|
};
|
|
567
578
|
};
|
|
579
|
+
retiredRules: Readonly<Record<string, RetiredRule>>;
|
|
568
580
|
configs: {
|
|
569
581
|
recommended: FlatPreset;
|
|
570
582
|
strict: FlatPreset;
|
|
571
583
|
};
|
|
572
584
|
};
|
|
573
585
|
|
|
574
|
-
export { plugin as default, recommendedRules, renamedRules, rules, strictRules };
|
|
586
|
+
export { type RetiredRule, plugin as default, recommendedRules, renamedRules, retiredRules, rules, strictRules };
|