diff --git a/src/rules/vue/index.d.ts b/src/rules/vue/index.d.ts index a48ff2ab..71cc6ccd 100644 --- a/src/rules/vue/index.d.ts +++ b/src/rules/vue/index.d.ts @@ -167,6 +167,7 @@ import type { RequireEmitValidatorRule } from './require-emit-validator'; import type { RequireExplicitEmitsRule } from './require-explicit-emits'; import type { RequireExposeRule } from './require-expose'; import type { RequireNamePropertyRule } from './require-name-property'; +import type { RequirePropCommentRule } from './require-prop-comment'; import type { RequirePropTypeConstructorRule } from './require-prop-type-constructor'; import type { RequirePropTypesRule } from './require-prop-types'; import type { RequireRenderReturnRule } from './require-render-return'; @@ -390,6 +391,7 @@ export type VueRules = ArrayBracketNewlineRule & RequireExplicitEmitsRule & RequireExposeRule & RequireNamePropertyRule & + RequirePropCommentRule & RequirePropTypeConstructorRule & RequirePropTypesRule & RequireRenderReturnRule & diff --git a/src/rules/vue/no-extra-parens.d.ts b/src/rules/vue/no-extra-parens.d.ts index e291c12c..2b335d1f 100644 --- a/src/rules/vue/no-extra-parens.d.ts +++ b/src/rules/vue/no-extra-parens.d.ts @@ -19,6 +19,7 @@ export type NoExtraParensOption = enforceForSequenceExpressions?: boolean; enforceForNewInMemberExpressions?: boolean; enforceForFunctionPrototypeMethods?: boolean; + allowParensAfterCommentPattern?: string; }, ]; diff --git a/src/rules/vue/require-prop-comment.d.ts b/src/rules/vue/require-prop-comment.d.ts new file mode 100644 index 00000000..b00b1875 --- /dev/null +++ b/src/rules/vue/require-prop-comment.d.ts @@ -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; + +/** + * 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; +}