Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Quadflieg , Christopher
committed
Jan 2, 2023
1 parent
6bb6f75
commit 6dddb48
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { RuleConfig } from '../rule-config'; | ||
|
||
/** | ||
* Option. | ||
*/ | ||
export interface RequirePropCommentOption { | ||
type?: 'JSDoc' | 'line' | 'block' | 'any'; | ||
} | ||
|
||
/** | ||
* Options. | ||
*/ | ||
export type RequirePropCommentOptions = [RequirePropCommentOption?]; | ||
|
||
/** | ||
* Require props to have a comment. | ||
* | ||
* @see [require-prop-comment](https://eslint.vuejs.org/rules/require-prop-comment.html) | ||
*/ | ||
export type RequirePropCommentRuleConfig = | ||
RuleConfig<RequirePropCommentOptions>; | ||
|
||
/** | ||
* Require props to have a comment. | ||
* | ||
* @see [require-prop-comment](https://eslint.vuejs.org/rules/require-prop-comment.html) | ||
*/ | ||
export interface RequirePropCommentRule { | ||
/** | ||
* Require props to have a comment. | ||
* | ||
* @see [require-prop-comment](https://eslint.vuejs.org/rules/require-prop-comment.html) | ||
*/ | ||
'vue/require-prop-comment': RequirePropCommentRuleConfig; | ||
} |