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

Commit 6dddb48

Browse files
author
Quadflieg , Christopher
committed
Update vue rules
1 parent 6bb6f75 commit 6dddb48

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

src/rules/vue/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ import type { RequireEmitValidatorRule } from './require-emit-validator';
167167
import type { RequireExplicitEmitsRule } from './require-explicit-emits';
168168
import type { RequireExposeRule } from './require-expose';
169169
import type { RequireNamePropertyRule } from './require-name-property';
170+
import type { RequirePropCommentRule } from './require-prop-comment';
170171
import type { RequirePropTypeConstructorRule } from './require-prop-type-constructor';
171172
import type { RequirePropTypesRule } from './require-prop-types';
172173
import type { RequireRenderReturnRule } from './require-render-return';
@@ -390,6 +391,7 @@ export type VueRules = ArrayBracketNewlineRule &
390391
RequireExplicitEmitsRule &
391392
RequireExposeRule &
392393
RequireNamePropertyRule &
394+
RequirePropCommentRule &
393395
RequirePropTypeConstructorRule &
394396
RequirePropTypesRule &
395397
RequireRenderReturnRule &

src/rules/vue/no-extra-parens.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type NoExtraParensOption =
1919
enforceForSequenceExpressions?: boolean;
2020
enforceForNewInMemberExpressions?: boolean;
2121
enforceForFunctionPrototypeMethods?: boolean;
22+
allowParensAfterCommentPattern?: string;
2223
},
2324
];
2425

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

0 commit comments

Comments
 (0)