Skip to content

Commit

Permalink
chore: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 7, 2024
1 parent be2189f commit f09c31a
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 60 deletions.
6 changes: 5 additions & 1 deletion test/output/core-rules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ export interface RuleOptions {
* Enforce the use of `u` or `v` flag on RegExp
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
*/
'require-unicode-regexp'?: Linter.RuleEntry<[]>
'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
/**
* Require generator functions to contain `yield`
* @see https://eslint.org/docs/latest/rules/require-yield
Expand Down Expand Up @@ -2885,6 +2885,10 @@ type Radix = []|[("always" | "as-needed")]
type RequireAtomicUpdates = []|[{
allowProperties?: boolean
}]
// ----- require-unicode-regexp -----
type RequireUnicodeRegexp = []|[{
requireFlag?: ("u" | "v")
}]
// ----- rest-spread-spacing -----
type RestSpreadSpacing = []|[("always" | "never")]
// ----- semi -----
Expand Down
41 changes: 34 additions & 7 deletions test/output/flat-config-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export interface RuleOptions {
*/
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>
/**
* enforce order of `defineEmits` and `defineProps` compiler macros
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
* @see https://eslint.vuejs.org/rules/define-macros-order.html
*/
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>
Expand Down Expand Up @@ -221,7 +221,7 @@ export interface RuleOptions {
*/
'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
/**
* Enforce consistent spacing between keys and values in object literal properties in `<template>`
* Enforce consistent spacing between property names and type annotations in types and interfaces in `<template>`
* @see https://eslint.vuejs.org/rules/key-spacing.html
*/
'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
Expand Down Expand Up @@ -255,6 +255,16 @@ export interface RuleOptions {
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
*/
'vue/max-lines-per-block'?: Linter.RuleEntry<VueMaxLinesPerBlock>
/**
* enforce maximum number of props in Vue component
* @see https://eslint.vuejs.org/rules/max-props.html
*/
'vue/max-props'?: Linter.RuleEntry<VueMaxProps>
/**
* enforce maximum depth of template
* @see https://eslint.vuejs.org/rules/max-template-depth.html
*/
'vue/max-template-depth'?: Linter.RuleEntry<VueMaxTemplateDepth>
/**
* require component names to be always multi-word
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
Expand Down Expand Up @@ -311,7 +321,7 @@ export interface RuleOptions {
*/
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>
/**
* disallow accessing computed properties in `data`.
* disallow accessing computed properties in `data`
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
*/
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>
Expand Down Expand Up @@ -859,7 +869,7 @@ export interface RuleOptions {
*/
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>
/**
* enforce use of `defineOptions` instead of default export.
* enforce use of `defineOptions` instead of default export
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
*/
'vue/prefer-define-options'?: Linter.RuleEntry<[]>
Expand Down Expand Up @@ -894,7 +904,7 @@ export interface RuleOptions {
*/
'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
/**
* Require quotes around object literal property names in `<template>`
* Require quotes around object literal, type literal, interfaces and enums property names in `<template>`
* @see https://eslint.vuejs.org/rules/quote-props.html
*/
'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
Expand All @@ -903,6 +913,11 @@ export interface RuleOptions {
* @see https://eslint.vuejs.org/rules/require-component-is.html
*/
'vue/require-component-is'?: Linter.RuleEntry<[]>
/**
* require components to be the default export
* @see https://eslint.vuejs.org/rules/require-default-export.html
*/
'vue/require-default-export'?: Linter.RuleEntry<[]>
/**
* require default value for props
* @see https://eslint.vuejs.org/rules/require-default-prop.html
Expand Down Expand Up @@ -972,7 +987,7 @@ export interface RuleOptions {
* require control the display of the content inside `<transition>`
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
*/
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<[]>
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>
/**
* enforce adding type declarations to object props
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
Expand Down Expand Up @@ -1355,7 +1370,7 @@ type VueCustomEventNameCasing = ([]|[("kebab-case" | "camelCase")]|[("kebab-case
type VueDefineEmitsDeclaration = []|[("type-based" | "type-literal" | "runtime")]
// ----- vue/define-macros-order -----
type VueDefineMacrosOrder = []|[{
order?: ("defineEmits" | "defineProps" | "defineOptions" | "defineSlots" | "defineModel")[]
order?: string[]
defineExposeLast?: boolean
}]
// ----- vue/define-props-declaration -----
Expand Down Expand Up @@ -1890,6 +1905,14 @@ type VueMaxLinesPerBlock = []|[{
script?: number
skipBlankLines?: boolean
}]
// ----- vue/max-props -----
type VueMaxProps = []|[{
maxProps?: number
}]
// ----- vue/max-template-depth -----
type VueMaxTemplateDepth = []|[{
maxDepth?: number
}]
// ----- vue/multi-word-component-names -----
type VueMultiWordComponentNames = []|[{
ignores?: string[]
Expand Down Expand Up @@ -2304,6 +2327,10 @@ type VueRequireMacroVariableName = []|[{
type VueRequirePropComment = []|[{
type?: ("JSDoc" | "line" | "block" | "any")
}]
// ----- vue/require-toggle-inside-transition -----
type VueRequireToggleInsideTransition = []|[{
additionalDirectives?: string[]
}]
// ----- vue/return-in-computed-property -----
type VueReturnInComputedProperty = []|[{
treatUndefinedAsUnspecified?: boolean
Expand Down
Loading

0 comments on commit f09c31a

Please sign in to comment.