Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 650de2d

Browse files
committed
Update jsdoc rules
1 parent 9e0b922 commit 650de2d

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

src/rules/jsdoc/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import type { MatchNameRule } from './match-name';
1717
import type { MultilineBlocksRule } from './multiline-blocks';
1818
import type { NoBadBlocksRule } from './no-bad-blocks';
1919
import type { NoBlankBlockDescriptionsRule } from './no-blank-block-descriptions';
20+
import type { NoBlankBlocksRule } from './no-blank-blocks';
2021
import type { NoDefaultsRule } from './no-defaults';
2122
import type { NoMissingSyntaxRule } from './no-missing-syntax';
2223
import 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 &

src/rules/jsdoc/no-blank-blocks.d.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

0 commit comments

Comments
 (0)