This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ import type { RequireEmitValidatorRule } from './require-emit-validator';
167
167
import type { RequireExplicitEmitsRule } from './require-explicit-emits' ;
168
168
import type { RequireExposeRule } from './require-expose' ;
169
169
import type { RequireNamePropertyRule } from './require-name-property' ;
170
+ import type { RequirePropCommentRule } from './require-prop-comment' ;
170
171
import type { RequirePropTypeConstructorRule } from './require-prop-type-constructor' ;
171
172
import type { RequirePropTypesRule } from './require-prop-types' ;
172
173
import type { RequireRenderReturnRule } from './require-render-return' ;
@@ -390,6 +391,7 @@ export type VueRules = ArrayBracketNewlineRule &
390
391
RequireExplicitEmitsRule &
391
392
RequireExposeRule &
392
393
RequireNamePropertyRule &
394
+ RequirePropCommentRule &
393
395
RequirePropTypeConstructorRule &
394
396
RequirePropTypesRule &
395
397
RequireRenderReturnRule &
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export type NoExtraParensOption =
19
19
enforceForSequenceExpressions ?: boolean ;
20
20
enforceForNewInMemberExpressions ?: boolean ;
21
21
enforceForFunctionPrototypeMethods ?: boolean ;
22
+ allowParensAfterCommentPattern ?: string ;
22
23
} ,
23
24
] ;
24
25
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 RequirePropCommentOption {
7
+ type ?: 'JSDoc' | 'line' | 'block' | 'any' ;
8
+ }
9
+
10
+ /**
11
+ * Options.
12
+ */
13
+ export type RequirePropCommentOptions = [ RequirePropCommentOption ?] ;
14
+
15
+ /**
16
+ * Require props to have a comment.
17
+ *
18
+ * @see [require-prop-comment](https://eslint.vuejs.org/rules/require-prop-comment.html)
19
+ */
20
+ export type RequirePropCommentRuleConfig =
21
+ RuleConfig < RequirePropCommentOptions > ;
22
+
23
+ /**
24
+ * Require props to have a comment.
25
+ *
26
+ * @see [require-prop-comment](https://eslint.vuejs.org/rules/require-prop-comment.html)
27
+ */
28
+ export interface RequirePropCommentRule {
29
+ /**
30
+ * Require props to have a comment.
31
+ *
32
+ * @see [require-prop-comment](https://eslint.vuejs.org/rules/require-prop-comment.html)
33
+ */
34
+ 'vue/require-prop-comment' : RequirePropCommentRuleConfig ;
35
+ }
You can’t perform that action at this time.
0 commit comments