This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import type { MatchNameRule } from './match-name';
1717import type { MultilineBlocksRule } from './multiline-blocks' ;
1818import type { NoBadBlocksRule } from './no-bad-blocks' ;
1919import type { NoBlankBlockDescriptionsRule } from './no-blank-block-descriptions' ;
20+ import type { NoBlankBlocksRule } from './no-blank-blocks' ;
2021import type { NoDefaultsRule } from './no-defaults' ;
2122import type { NoMissingSyntaxRule } from './no-missing-syntax' ;
2223import type { NoMultiAsterisksRule } from './no-multi-asterisks' ;
@@ -72,6 +73,7 @@ export type JSDocRules = CheckAccessRule &
7273 MultilineBlocksRule &
7374 NoBadBlocksRule &
7475 NoBlankBlockDescriptionsRule &
76+ NoBlankBlocksRule &
7577 NoDefaultsRule &
7678 NoMissingSyntaxRule &
7779 NoMultiAsterisksRule &
Original file line number Diff line number Diff line change 1+ import type { RuleConfig } from '../rule-config' ;
2+
3+ /**
4+ * Option.
5+ */
6+ export interface NoBlankBlocksOption {
7+ enableFixer ?: boolean ;
8+ }
9+
10+ /**
11+ * Options.
12+ */
13+ export type NoBlankBlocksOptions = [ NoBlankBlocksOption ?] ;
14+
15+ /**
16+ * Removes empty blocks with nothing but possibly line breaks.
17+ *
18+ * @see [no-blank-blocks](https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-no-blank-blocks)
19+ */
20+ export type NoBlankBlocksRuleConfig = RuleConfig < NoBlankBlocksOptions > ;
21+
22+ /**
23+ * Removes empty blocks with nothing but possibly line breaks.
24+ *
25+ * @see [no-blank-blocks](https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-no-blank-blocks)
26+ */
27+ export interface NoBlankBlocksRule {
28+ /**
29+ * Removes empty blocks with nothing but possibly line breaks.
30+ *
31+ * @see [no-blank-blocks](https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-no-blank-blocks)
32+ */
33+ 'jsdoc/no-blank-blocks' : NoBlankBlocksRuleConfig ;
34+ }
You can’t perform that action at this time.
0 commit comments