@sarj/eslint-plugin 7.1.0 → 8.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 +350 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +350 -69
- 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
|
*
|
|
@@ -377,7 +391,7 @@ type FlatPreset = {
|
|
|
377
391
|
declare const plugin: {
|
|
378
392
|
meta: {
|
|
379
393
|
readonly name: "@sarj/eslint-plugin";
|
|
380
|
-
readonly version: "
|
|
394
|
+
readonly version: "8.0.0";
|
|
381
395
|
};
|
|
382
396
|
rules: {
|
|
383
397
|
"jsdoc-restates-signature": RuleModule;
|
|
@@ -565,10 +579,11 @@ declare const plugin: {
|
|
|
565
579
|
name: string;
|
|
566
580
|
};
|
|
567
581
|
};
|
|
582
|
+
retiredRules: Readonly<Record<string, RetiredRule>>;
|
|
568
583
|
configs: {
|
|
569
584
|
recommended: FlatPreset;
|
|
570
585
|
strict: FlatPreset;
|
|
571
586
|
};
|
|
572
587
|
};
|
|
573
588
|
|
|
574
|
-
export { plugin as default, recommendedRules, renamedRules, rules, strictRules };
|
|
589
|
+
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
|
*
|
|
@@ -377,7 +391,7 @@ type FlatPreset = {
|
|
|
377
391
|
declare const plugin: {
|
|
378
392
|
meta: {
|
|
379
393
|
readonly name: "@sarj/eslint-plugin";
|
|
380
|
-
readonly version: "
|
|
394
|
+
readonly version: "8.0.0";
|
|
381
395
|
};
|
|
382
396
|
rules: {
|
|
383
397
|
"jsdoc-restates-signature": RuleModule;
|
|
@@ -565,10 +579,11 @@ declare const plugin: {
|
|
|
565
579
|
name: string;
|
|
566
580
|
};
|
|
567
581
|
};
|
|
582
|
+
retiredRules: Readonly<Record<string, RetiredRule>>;
|
|
568
583
|
configs: {
|
|
569
584
|
recommended: FlatPreset;
|
|
570
585
|
strict: FlatPreset;
|
|
571
586
|
};
|
|
572
587
|
};
|
|
573
588
|
|
|
574
|
-
export { plugin as default, recommendedRules, renamedRules, rules, strictRules };
|
|
589
|
+
export { type RetiredRule, plugin as default, recommendedRules, renamedRules, retiredRules, rules, strictRules };
|