Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vuejs/eslint-plugin-vue
/ functions
Functions
2,001 in github.com/vuejs/eslint-plugin-vue
⨍
Functions
2,001
◇
Types & classes
276
↓ 1 callers
Function
getReportNodes
* Gets the static properties of a given expression node. * - If `SpreadElement` or computed property exists, it gets only the static properties befor
lib/rules/no-static-inline-styles.js:36
↓ 1 callers
Function
getRootObjectName
* Get the root object name from a member expression chain * @param {MemberExpression} memberExpr * @returns {string|null}
lib/rules/no-async-in-computed-properties.js:95
↓ 1 callers
Function
getSlotDirectivesOnChildren
* Get all `v-slot` directives on the children of a given element. * @param {VElement} node The VElement node to check. * @returns {VDirective[][]}
lib/rules/valid-v-slot.js:30
↓ 1 callers
Function
getSlotDirectivesOnElement
* Get all `v-slot` directives on a given element. * @param {VElement} node The VElement node to check. * @returns {VDirective[]} The array of `v-slo
lib/rules/valid-v-slot.js:18
↓ 1 callers
Function
getSlotNameNode
* @param {VElement} node * @return {VAttribute | VDirective | undefined}
lib/rules/require-explicit-slots.js:42
↓ 1 callers
Function
getSlotVForVariableIfUsingIterationVars
* Gets the `v-for` directive and variable that provide the variables used by the given `slot` attribute. * @param {VAttribute | VDirective | null} sl
lib/rules/syntaxes/utils/can-convert-to-v-slot.js:70
↓ 1 callers
Function
getSlotsName
* @param {TypeElement} node * @return {string | null}
lib/rules/require-explicit-slots.js:18
↓ 1 callers
Function
getStaticClassName
* @param {Literal | TemplateLiteral | TemplateElement | Identifier} staticClassNameNode * @returns {string | null}
lib/rules/prefer-separate-static-class.js:77
↓ 1 callers
Function
getStringValue
* Get a string from given expression container node
lib/rules/no-bare-strings-in-template.ts:83
↓ 1 callers
Function
getStylisticRule
* Get ESLint Stylistic rule implementation from the rule name * @param {string} name * @param {'@stylistic/eslint-plugin' | '@stylistic/eslint-plugi
lib/utils/index.js:134
↓ 1 callers
Function
getSuggestion
* @param {VAttribute} node * @returns {Rule.SuggestionReportDescriptor}
lib/rules/no-template-target-blank.js:73
↓ 1 callers
Function
getSystemModifiersString
* Creates alphabetically sorted string with system modifiers * * @param {string[]} modifiers * @returns {string} e.g. "alt,ctrl,del,shift"
lib/rules/use-v-on-exact.js:97
↓ 1 callers
Function
getTargetAttrs
* Get the attribute to be verified from the element name.
lib/rules/no-bare-strings-in-template.ts:198
↓ 1 callers
Function
getTargetStatementPosition
* Get an index of the first statement after imports and interfaces in order * to place defineEmits and defineProps before this statement * @param {V
lib/rules/define-macros-order.js:60
↓ 1 callers
Function
getToRefSet
()
lib/utils/property-references.ts:107
↓ 1 callers
Function
getTokenAndCommentsBetween
* @param {VElement} prev * @param {VElement} next
lib/rules/padding-line-between-blocks.js:163
↓ 1 callers
Function
getTokensAndComments
()
lib/utils/index.js:215
↓ 1 callers
Function
getTopLevelHTMLElements
()
lib/rules/no-restricted-block.ts:73
↓ 1 callers
Function
getTopLevelHTMLElements
* @returns {VElement[]}
lib/rules/padding-line-between-blocks.js:155
↓ 1 callers
Function
getTopLevelHTMLElements
()
lib/rules/max-lines-per-block.js:72
↓ 1 callers
Function
getTopLevelHTMLElements
()
lib/rules/block-order.ts:96
↓ 1 callers
Function
getTypes
(targetNode: Expression)
lib/rules/require-valid-default-prop.ts:41
↓ 1 callers
Function
getUpdateEventPropName
* Extract the prop name from an `update:propName` event directive argument.
lib/rules/prefer-v-model.ts:19
↓ 1 callers
Function
getUserDefinedAllowedAttrs
@param {RuleContext} context
lib/rules/enforce-style-attribute.js:38
↓ 1 callers
Function
getUsingIterationVars
* Gets iterative variables if a given argument node is using iterative variables that the element defined. * @param {VExpressionContainer|VIdentifier
lib/rules/valid-v-slot.js:183
↓ 1 callers
Function
getUsingIterationVars
* Gets iterative variables if a given expression node is using iterative variables that the element defined. * @param {VExpressionContainer|null} exp
lib/rules/syntaxes/utils/can-convert-to-v-slot.js:87
↓ 1 callers
Function
getVExpressionContainer
* Gets the VExpressionContainer of a given node. * @param {ASTNode} node - The node to get. * @return {VExpressionContainer|null}
lib/utils/index.js:2726
↓ 1 callers
Function
getVExpressionContainer
* @param {ASTNode} node * @returns {VExpressionContainer}
lib/rules/no-mutating-props.js:46
↓ 1 callers
Function
getVariable
* Get the variable by names. * @param {string} name The variable name to find. * @param {VElement} leafNode The node to look up. * @returns {VVaria
lib/rules/valid-v-model.js:92
↓ 1 callers
Function
getVueDeprecatedCallExpression
* @param {Identifier} identifier * @param {RuleContext} context * @returns {CallExpression|undefined}
lib/rules/no-deprecated-delete-set.js:55
↓ 1 callers
Function
getVueNextTickCallExpression
* @param {Identifier} identifier * @param {RuleContext} context * @returns {CallExpression|undefined}
lib/rules/next-tick-style.js:17
↓ 1 callers
Function
getVueNextTickNode
* @param {Identifier} identifier * @param {RuleContext} context * @returns {ASTNode|undefined}
lib/rules/valid-next-tick.js:17
↓ 1 callers
Function
getWithDefaults
* Get the withDefaults call node from given defineProps call node. * @param {CallExpression} node The node of defineProps * @returns {CallExpression
lib/utils/index.js:3328
↓ 1 callers
Function
getWithDefaultsProps
* Gets a map of the property nodes defined in withDefaults. * @param {CallExpression} node The node of defineProps * @returns { { [key: string]: Pro
lib/utils/index.js:3337
↓ 1 callers
Function
groupAttrsByLine
* @param {(VDirective | VAttribute)[]} attributes
lib/rules/max-attributes-per-line.js:46
↓ 1 callers
Function
groupByLineNumber
* Group AST nodes by line number, both start and end. * * @param {Token[]} nodes the AST nodes in question * @returns { { [key: number]: Token[] }
lib/rules/max-len.js:154
↓ 1 callers
Function
groupEvents
* Groups all events in object, * with keys represinting each event name * * @param {EventDirective[]} events * @returns { { [key: string]: EventDi
lib/rules/use-v-on-exact.js:79
↓ 1 callers
Function
groupingVariables
* Groups variables by directive kind. * @param {VElement} node The element node * @returns { { [kind in VariableKind]?: VVariable[] } } The variable
lib/rules/no-unused-vars.js:18
↓ 1 callers
Function
handleFix
* @param {RuleFixer} fixer * @param {Property} propertyNode * @param {Property} unorderedPropertyNode
lib/rules/order-in-components.js:269
↓ 1 callers
Function
hasAttributeSrc
* check whether has attribute `src` * @param {VElement} componentBlock
lib/rules/no-empty-component-block.js:13
↓ 1 callers
Function
hasConditionalRenderedSiblings
( node: VElement, componentName: string )
lib/rules/v-if-else-key.ts:30
↓ 1 callers
Function
hasDynamicLink
* @param {VStartTag} node
lib/rules/no-template-target-blank.js:56
↓ 1 callers
Function
hasEmptyLine
* Check whether the between given nodes has empty line. * @param {SourceCode} sourceCode * @param {ASTNode} pre * @param {ASTNode} cur
lib/rules/new-line-between-multi-line-property.js:36
↓ 1 callers
Function
hasExternalLink
* @param {VStartTag} node
lib/rules/no-template-target-blank.js:42
↓ 1 callers
Function
hasFunctionType
* @param {Expression} node * @returns {boolean}
lib/rules/no-deprecated-props-default-this.js:20
↓ 1 callers
Function
hasInvalidModifiers
* If `allowModifiers` option is set to `true`, check whether a given argument node has invalid modifiers like `v-slot.foo`. * Otherwise, check whethe
lib/rules/valid-v-slot.js:231
↓ 1 callers
Function
hasReferenceId
* Check if the given node is a reference of setup context * @param {Expression | Super | SpreadElement} value * @param {SetupContext} setupContext
lib/rules/no-unused-emit-declarations.js:51
↓ 1 callers
Function
hasReferenceUpperElementVariable
* Checks whether the given node refers to a variable of the element.
lib/rules/no-literals-in-template.ts:56
↓ 1 callers
Function
hasSameSlotDirective
* Checks whether parent element has the same slot as the given slot. * @param {VElement} ownerElement The parent element. * @param {SlotContext} tar
lib/rules/syntaxes/utils/can-convert-to-v-slot.js:127
↓ 1 callers
Function
hasSecureRel
* @param {VStartTag} node * @param {boolean} allowReferrer
lib/rules/no-template-target-blank.js:22
↓ 1 callers
Function
hasSystemModifier
* Checks whether given any of provided modifiers * has system modifier * * @param {string[]} modifiers * @returns {boolean}
lib/rules/use-v-on-exact.js:68
↓ 1 callers
Function
identifierNodeToVElementMatcher
* Convert Identifier node to VElementMatcher
lib/utils/selector.ts:341
↓ 1 callers
Function
inferEnumType
* @param {RuleContext} context The ESLint rule context object. * @param {import('@typescript-eslint/types').TSESTree.TSEnumDeclaration} node * @retu
lib/utils/ts-utils/ts-ast.js:594
↓ 1 callers
Function
inferLiteralValueType
* @param {import('@typescript-eslint/types').TSESTree.Literal['value']} value * @returns {string | null}
lib/utils/ts-utils/ts-ast.js:569
↓ 1 callers
Function
inferTypeLiteralType
* @param {import('@typescript-eslint/types').TSESTree.TSTypeLiteral} node * @returns {string[]}
lib/utils/ts-utils/ts-ast.js:551
↓ 1 callers
Function
inferUnionType
* @param {import('@typescript-eslint/types').TSESTree.TSUnionType|import('@typescript-eslint/types').TSESTree.TSIntersectionType} node * @returns {
lib/utils/ts-utils/ts-ast.js:536
↓ 1 callers
Function
insertLines
* @param {(Property | SpreadElement)} currentProperty * @param {(Property | SpreadElement | Token)} nextProperty * @param {RuleFixer} fixer
lib/rules/padding-lines-in-component-definition.js:202
↓ 1 callers
Function
insertNewLine
* @param {RuleContext} context * @param {VElement} tag * @param {VElement} sibling * @param {number} lineDifference
lib/rules/padding-line-between-tags.js:25
↓ 1 callers
Function
interopDefault
* @param {any} mod
tools/lib/rules.js:15
↓ 1 callers
Function
intersectionConstituents
* @param {Type} type * @returns {Type[]}
lib/utils/ts-utils/ts-types.js:352
↓ 1 callers
Function
invalidTests
(ext: string)
tests/lib/utils/vue-component.test.ts:131
↓ 1 callers
Function
isAllowedComponent
* Check whether the given node is an allowed component or not. * @param node The start tag node to check.
lib/rules/no-v-text-v-html-on-component.ts:50
↓ 1 callers
Function
isAllowedTarget
(name: string)
lib/rules/restricted-component-names.ts:52
↓ 1 callers
Function
isAllowedVarName
* @param {RuleContext} context * @param {string} variableName
lib/rules/no-template-shadow.js:27
↓ 1 callers
Function
isAlphabetical
* @param {VAttribute | VDirective} prevNode * @param {VAttribute | VDirective} currNode * @param {SourceCode} sourceCode
lib/rules/attributes-order.js:205
↓ 1 callers
Function
isArrayLikeObject
* Check if a given type is an array-like type or not. * @param {Type} tsType The type to check.
lib/utils/ts-utils/typescript.js:106
↓ 1 callers
Function
isAssignmentProperty
* Checks whether the given node is AssignmentProperty. * @param {AssignmentProperty | RestElement} node * @returns {node is AssignmentProperty}
lib/utils/index.js:2529
↓ 1 callers
Function
isAwaitedPromise
* @param {CallExpression} callExpression * @returns {boolean}
lib/rules/next-tick-style.js:73
↓ 1 callers
Function
isAwaitedPromise
* @param {CallExpression} callExpression * @returns {boolean}
lib/rules/valid-next-tick.js:61
↓ 1 callers
Function
isBeginningOfElement
* Check whether a given token is the first token of: * * - A parameter of TSTypeParameterInstantiation * - An element of TSTupleType
lib/utils/indent-ts.ts:101
↓ 1 callers
Function
isBeginningOfElement
* Check whether a given token is the first token of: * * - ExpressionStatement * - VExpressionContainer * - A parameter of CallExpression/
lib/utils/indent-common.ts:490
↓ 1 callers
Function
isBigIntLike
* Check if a given type is an bigint-like type or not. * @param {Type} tsType The type to check. * @returns {boolean} `true` if the type is a bigint
lib/utils/ts-utils/typescript.js:182
↓ 1 callers
Function
isBooleanIdentifier
* @param {Expression|undefined} node
lib/rules/no-boolean-default.js:17
↓ 1 callers
Function
isBooleanProp
* Detects whether given prop node is a Boolean * @param {ComponentObjectProp} prop * @return {Boolean}
lib/rules/no-boolean-default.js:26
↓ 1 callers
Function
isBooleanProp
* Detects whether given prop node is a Boolean * @param {ComponentObjectProp} prop * @return {Boolean}
lib/rules/require-default-prop.js:119
↓ 1 callers
Function
isButtonType
* * @param {string} type * @returns {type is 'button' | 'submit' | 'reset'}
lib/rules/html-button-has-type.js:14
↓ 1 callers
Function
isCamelCase
(str: string)
lib/utils/casing.ts:74
↓ 1 callers
Function
isCloseParen
@param {Token} token
lib/rules/no-shared-component-data.js:15
↓ 1 callers
Function
isCloseParen
@param {Token} token
lib/rules/no-deprecated-data-object-declaration.js:15
↓ 1 callers
Function
isClosingToken
* Check whether a given token is a closing token which triggers unindent.
lib/utils/indent-common.ts:169
↓ 1 callers
Function
isComma
* @param {Token} node
lib/rules/order-in-components.js:125
↓ 1 callers
Function
isCommentDirective
(comment: HTMLComment)
lib/utils/html-comments.ts:35
↓ 1 callers
Function
isConditionalGroup
@param {VElement[]} elements
lib/rules/no-duplicate-attr-inheritance.js:10
↓ 1 callers
Function
isDeclareStatement
* @param {ASTNode} node
lib/rules/define-macros-order.js:39
↓ 1 callers
Function
isDef
* Checks whether the given value is defined. * @template T * @param {T | null | undefined} v * @returns {v is T}
lib/utils/index.js:2323
↓ 1 callers
Method
isDefinedComponent
* @see https://github.com/vuejs/core/blob/ae4b0783d78670b6e942ae2a4e3ec6efbbffa158/packages/compiler-core/src/transforms/transformElement.ts#L334
lib/rules/no-undef-components.ts:38
↓ 1 callers
Method
isDefinedComponent
(rawName: string)
lib/rules/no-undef-components.ts:74
↓ 1 callers
Function
isDefinedInOptions
(rawName: string, definedNames: Set<string>)
lib/rules/no-undef-directives.ts:40
↓ 1 callers
Function
isDefinedInSetup
(rawName: string, definedNames: Set<string>)
lib/rules/no-undef-directives.ts:34
↓ 1 callers
Function
isDescendantCombinator
( node: parser.Node | null )
lib/utils/selector.ts:74
↓ 1 callers
Function
isDestructuringVar
* Checks if the given variable was defined by destructuring. * @param {VVariable} variable the given variable to check * @returns {boolean} `true` i
lib/rules/no-unused-vars.js:34
↓ 1 callers
Function
isDirectlyFollowedByElse
* @param {VElement} element * @returns {boolean}
lib/rules/no-negated-v-if-condition.js:51
↓ 1 callers
Function
isDuplicate
* @param {string} name * @param {boolean} isDirective
lib/rules/no-duplicate-attributes.js:73
↓ 1 callers
Function
isEmpty
* Check whether the given element is empty or not. * This ignores whitespaces, doesn't ignore comments.
lib/rules/singleline-html-element-content-newline.ts:29
↓ 1 callers
Function
isEmpty
* Check whether the given element is empty or not. * This ignores whitespaces, doesn't ignore comments.
lib/rules/html-self-closing.ts:69
↓ 1 callers
Function
isEmpty
* Check whether the given element is empty or not. * This ignores whitespaces, doesn't ignore comments.
lib/rules/multiline-html-element-content-newline.ts:38
↓ 1 callers
Function
isEmptyLine
* Checks whether the given line is a blank line. * * @param line The number of line. Begins with 1.
lib/rules/html-comment-indent.ts:115
↓ 1 callers
Function
isExhaustiveSwitch
* Check whether a switch statement's discriminant is a finite union of literal * types and every union member is covered by a case clause. * Does NO
lib/utils/ts-utils/ts-types.js:381
↓ 1 callers
Function
isFragmentTemplateAttribute
* @param {VAttribute | VDirective} attr
lib/rules/no-useless-template-attributes.js:42
↓ 1 callers
Function
isFullLineComment
* Tells if a comment encompasses the entire line. * @param {string} line The source line with a trailing comment * @param {number} lineNumber The on
lib/rules/max-len.js:118
← previous
next →
501–600 of 2,001, ranked by callers