Skip to content

Commit

Permalink
Update vue rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Quadflieg , Christopher committed Jan 2, 2023
1 parent 6bb6f75 commit 6dddb48
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rules/vue/index.d.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -390,6 +391,7 @@ export type VueRules = ArrayBracketNewlineRule &
RequireExplicitEmitsRule &
RequireExposeRule &
RequireNamePropertyRule &
RequirePropCommentRule &
RequirePropTypeConstructorRule &
RequirePropTypesRule &
RequireRenderReturnRule &
Expand Down
1 change: 1 addition & 0 deletions src/rules/vue/no-extra-parens.d.ts
Expand Up @@ -19,6 +19,7 @@ export type NoExtraParensOption =
enforceForSequenceExpressions?: boolean;
enforceForNewInMemberExpressions?: boolean;
enforceForFunctionPrototypeMethods?: boolean;
allowParensAfterCommentPattern?: string;
},
];

Expand Down
35 changes: 35 additions & 0 deletions 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<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;
}

0 comments on commit 6dddb48

Please sign in to comment.