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
↓ 282 callers
Method
report
(descriptor: ReportDescriptor)
typings/eslint/index.d.ts:362
↓ 111 callers
Method
getFirstToken
(node: VNODE.HasLocation)
typings/eslint-plugin-vue/util-types/parser-services.ts:44
↓ 91 callers
Method
get
( node: T )
lib/utils/ref-object-references.ts:308
↓ 87 callers
Function
setOffset
* Set offset to the given tokens.
lib/utils/indent-common.ts:215
↓ 81 callers
Method
getTokenAfter
(node: VNODE.HasLocation)
typings/eslint-plugin-vue/util-types/parser-services.ts:66
↓ 53 callers
Method
getTokenBefore
(node: VNODE.HasLocation)
typings/eslint-plugin-vue/util-types/parser-services.ts:56
↓ 46 callers
Function
processNodeList
* Process the given node list. * The first node is offsetted from the given left token. * Rest nodes are adjusted to the first node. * * @
lib/utils/indent-common.ts:333
↓ 42 callers
Method
getLastToken
(node: VNODE.HasLocation)
typings/eslint-plugin-vue/util-types/parser-services.ts:50
↓ 42 callers
Method
replaceText
(nodeOrToken: VNODE.HasLocation, text: string)
typings/eslint/index.d.ts:385
↓ 34 callers
Method
getScope
@deprecated removed in ESLint v9
typings/eslint/index.d.ts:356
↓ 30 callers
Method
replaceTextRange
(range: AST.Range, text: string)
typings/eslint/index.d.ts:386
↓ 28 callers
Method
insertTextAfter
(nodeOrToken: VNODE.HasLocation, text: string)
typings/eslint/index.d.ts:379
↓ 26 callers
Method
getTokensBetween
( left: VNODE.HasLocation, right: VNODE.HasLocation, padding?: eslint.SourceCode.CursorWithC
typings/eslint-plugin-vue/util-types/parser-services.ts:125
↓ 24 callers
Function
wrapStylisticOrCoreRule
* Wrap a core rule or ESLint Stylistic rule to apply it to Vue.js template. * @param {RuleNames|string} ruleNames The names of the rule implementatio
lib/utils/index.js:491
↓ 20 callers
Function
getFirstAndLastTokens
* Get the first and last tokens of the given node. * If the node is parenthesized, this gets the outermost parentheses. * The `borderOffset` val
lib/utils/indent-common.ts:301
↓ 20 callers
Method
insertTextBefore
(nodeOrToken: VNODE.HasLocation, text: string)
typings/eslint/index.d.ts:381
↓ 17 callers
Function
getStaticPropertyName
* Gets the property name of a given node. * @param {Property|AssignmentProperty|MethodDefinition|MemberExpression} node - The node to get. * @return
lib/utils/index.js:2663
↓ 17 callers
Function
getTypeScriptFixtureTestOptions
()
tests/test-utils/typescript.ts:10
↓ 16 callers
Method
getTokens
( node: VNODE.HasLocation, beforeCount?: eslint.SourceCode.CursorWithCountOptions, afterCoun
typings/eslint-plugin-vue/util-types/parser-services.ts:120
↓ 16 callers
Function
kebabCase
(str: string)
lib/utils/casing.ts:25
↓ 16 callers
Function
optionsBuilder
( targetSyntax: (typeof SYNTAXES)[number], defaultVersion: string )
tests/lib/rules/no-unsupported-features/utils.ts:12
↓ 16 callers
Method
removeRange
(range: AST.Range)
typings/eslint/index.d.ts:384
↓ 15 callers
Function
getTypeScript
* Get TypeScript instance
lib/utils/ts-utils/typescript.js:35
↓ 13 callers
Function
pascalCase
(str: string)
lib/utils/casing.ts:81
↓ 13 callers
Function
toRegExpGroupMatcher
( patterns: string[] = [] )
lib/utils/regexp.ts:51
↓ 12 callers
Function
toRegExp
( string: string, flags: { add?: string; remove?: string } = {} )
lib/utils/regexp.ts:21
↓ 11 callers
Function
reportIfRefWrapped
(node: Identifier)
lib/rules/no-ref-as-operand.ts:94
↓ 11 callers
Function
wrapCoreRule
* Wrap a given core rule to apply it to Vue.js template. * @param {string} coreRuleName The name of the core rule implementation to wrap. * @param {
lib/utils/index.js:441
↓ 10 callers
Method
isRead
()
typings/eslint/index.d.ts:78
↓ 10 callers
Function
skipTSAsExpression
* Retrieve `TSAsExpression#expression` value if the given node a `TSAsExpression` node. Otherwise, pass through it. * @template T Node type * @param
lib/utils/index.js:2564
↓ 8 callers
Function
getChecker
(name: Case)
lib/utils/casing.ts:113
↓ 8 callers
Method
getNest
(name: string)
lib/utils/property-references.ts:711
↓ 8 callers
Function
getVueComponentContext
(node: ASTNode)
lib/rules/no-undef-properties.ts:204
↓ 8 callers
Function
getVueComponentPropertiesContainer
( node: ASTNode )
lib/rules/no-unused-properties.ts:242
↓ 8 callers
Method
verifyReferences
* Report
lib/rules/no-undef-properties.ts:117
↓ 7 callers
Function
camelCase
(str: string)
lib/utils/casing.ts:64
↓ 7 callers
Function
extractFromExpression
* Extract the property references from Expression.
lib/utils/property-references.ts:256
↓ 7 callers
Function
getDefineMacrosStatement
* We need to handle cases like "const props = defineProps(...)" * Define macros must be used only on top, so we can look for "Program" type * inside
lib/rules/define-macros-order.js:93
↓ 7 callers
Function
getScope
* Gets the scope for the current node * @param {RuleContext} context The rule context * @param {ESNode} currentNode The node to get the scope of *
lib/utils/scope.js:11
↓ 7 callers
Function
getStringLiteralValue
* Gets the string of a given node. * @param {Literal|TemplateLiteral} node - The node to get. * @param {boolean} [stringOnly] * @return {string|nul
lib/utils/index.js:2696
↓ 7 callers
Method
remove
(nodeOrToken: VNODE.HasLocation)
typings/eslint/index.d.ts:383
↓ 6 callers
Function
checker
* @param {ComponentEmit} emit
lib/rules/require-emit-validator.js:36
↓ 6 callers
Function
defineTemplateBodyVisitor
* Register the given visitor to parser services. * If the parser service of `vue-eslint-parser` was not found, * this generates a warning. * * @pa
lib/utils/index.js:2369
↓ 6 callers
Function
mergePropertyReferences
( references: IPropertyReferences[] )
lib/utils/property-references.ts:670
↓ 6 callers
Function
processMaybeBlock
* Process the given node as body. * The body node maybe a block statement or an expression node.
lib/utils/indent-common.ts:434
↓ 5 callers
Function
capitalize
(str: string)
lib/utils/casing.ts:4
↓ 5 callers
Method
create
(context: RuleContext)
typings/eslint/index.d.ts:284
↓ 5 callers
Function
defineVisitor
({ processNodeList, tokenStore, setOffset, copyOffset, processSemicolons, getFirstAndLastTokens }:
lib/utils/indent-ts.ts:87
↓ 5 callers
Function
getGlobalScope
(context: RuleContext)
lib/utils/ref-object-references.ts:282
↓ 5 callers
Function
getTSParserServices
* Get TypeScript parser services. * @param {RuleContext} context The ESLint rule context object. * @returns {Services|null}
lib/utils/ts-utils/ts-types.js:51
↓ 5 callers
Method
hasProperty
(name: string, option?: IHasPropertyOption)
lib/utils/property-references.ts:692
↓ 5 callers
Function
isObject
* Check if a given type is an object type or not. * @param {Type} tsType The type to check. * @returns {tsType is ObjectType}
lib/utils/ts-utils/typescript.js:97
↓ 5 callers
Function
isVBind
* Check whether the given attribute is `v-bind` directive. * @param {VAttribute | VDirective | undefined | null} node * @returns { node is VBindDire
lib/rules/attributes-order.js:35
↓ 5 callers
Function
parseOption
* @param {any} initialOption * @param {string} optionKey * @private *
lib/rules/padding-lines-in-component-definition.js:66
↓ 5 callers
Function
removeWhitespaceError
* Removes errors that occur inside a string node * @param {ASTNode | Token} node to check for matching errors. * @returns {void} * @pri
lib/rules/no-irregular-whitespace.js:74
↓ 5 callers
Function
resolvedExpressions
* @param {RuleContext} context * @param {Expression} node * @returns {Set<Expression>}
lib/rules/no-use-computed-property-like-method.js:40
↓ 5 callers
Function
verifyName
(node: Literal | TemplateLiteral)
lib/rules/match-component-file-name.ts:80
↓ 4 callers
Method
allProperties
()
lib/utils/property-references.ts:696
↓ 4 callers
Function
getAttributeValue
* Get attribute value from given element.
lib/utils/selector.ts:590
↓ 4 callers
Function
getConverter
(name: Case)
lib/utils/casing.ts:120
↓ 4 callers
Function
getCoreRule
* Get the core rule implementation from the rule name * @param {string} name * @returns {RuleModule | null}
lib/utils/index.js:115
↓ 4 callers
Function
getScriptSetupElement
* Gets the element of `<script setup>` * @param {RuleContext} context The ESLint rule context object. * @returns {VElement | null} the element of `<
lib/utils/index.js:2765
↓ 4 callers
Function
getStyleVariablesContext
( context: RuleContext )
lib/utils/style-variables/index.ts:34
↓ 4 callers
Function
getVueComponentDefinitionType
* Get the Vue component definition type from given node * Vue.component('xxx', {}) || component('xxx', {}) * @param {RuleContext} context The rule c
lib/utils/index.js:2912
↓ 4 callers
Function
hasSymbols
* Checks whether the given string has symbols.
lib/utils/casing.ts:11
↓ 4 callers
Function
isAny
* Check if a given type is an any type or not. * @param {Type} tsType The type to check.
lib/utils/ts-utils/typescript.js:121
↓ 4 callers
Function
isNever
* Check if a given type is a never type or not. * @param {Type} tsType The type to check.
lib/utils/ts-utils/typescript.js:137
↓ 4 callers
Function
isNull
* Check if a given type is an null type or not. * @param {Type} tsType The type to check.
lib/utils/ts-utils/typescript.js:145
↓ 4 callers
Function
isPascalCase
(str: string)
lib/utils/casing.ts:88
↓ 4 callers
Function
isRegExp
(string: string)
lib/utils/regexp.ts:43
↓ 4 callers
Function
isUnknown
* Check if a given type is an unknown type or not. * @param {Type} tsType The type to check.
lib/utils/ts-utils/typescript.js:129
↓ 4 callers
Function
last
(xs: T[])
lib/utils/indent-utils.ts:94
↓ 4 callers
Function
newProxy
* @template {object} T * @param {T} target * @param {Partial<T>[]} propsArray * @returns {T}
lib/utils/index.js:170
↓ 4 callers
Function
verify
* @param {(Property | SpreadElement)[]} properties * @param {any} option * @param {any} nextOption *
lib/rules/padding-lines-in-component-definition.js:225
↓ 4 callers
Function
verify
* @param {ESNode} node * @param {BlockStatement | Expression} targetBody * @param {keyof expressionTypes} type * @param {ComponentCompu
lib/rules/no-async-in-computed-properties.js:248
↓ 3 callers
Function
canConvertToVSlot
* Checks whether the given node can convert to the `v-slot`. * @param {VStartTag} startTag node of `<element v-slot ... >` * @returns {boole
lib/rules/syntaxes/slot-scope-attribute.js:29
↓ 3 callers
Function
checkPropIdentifierType
(context, identifierNode)
lib/rules/require-typed-object-prop.js:13
↓ 3 callers
Function
compositingVisitors
* @template T * @param {T} visitor * @param {...(TemplateListener | RuleListener | NodeListener)} visitors * @returns {T}
lib/utils/index.js:2428
↓ 3 callers
Function
definePropertyReferenceExtractor
( context: RuleContext, { unknownMemberAsUnreferenced = false, returnAsUnreferenced = false }: I
lib/utils/property-references.ts:85
↓ 3 callers
Function
escape
(string: string)
lib/utils/regexp.ts:10
↓ 3 callers
Function
extractFromName
* Extract the property references from name.
lib/utils/property-references.ts:551
↓ 3 callers
Function
findProperty
* Finds the property with the given name from the given ObjectExpression node. * @param {ObjectExpression} node * @param {string} name * @param { (
lib/utils/index.js:2471
↓ 3 callers
Function
flattenTypeNodes
* @param {RuleContext} context The ESLint rule context object. * @param {TSESTreeTypeNode} node * @returns {(TSESTreeTypeNode|TSESTreeTSInterfaceBod
lib/utils/ts-utils/ts-ast.js:297
↓ 3 callers
Function
getExactConverter
(name: Case)
lib/utils/casing.ts:128
↓ 3 callers
Function
getParent
* Gets the parent node of the given node. This method returns a value ignoring `X as F`. * @param {Expression} node * @returns {ASTNode}
lib/utils/index.js:2582
↓ 3 callers
Function
getPropertyFromObject
* Gets the property of the Object node passed in that has the name specified. * * @param {string} propertyName Name of the property to return. * @p
eslint-internal-rules/no-invalid-meta-docs-categories.js:15
↓ 3 callers
Function
getPropertyNameText
* @param {MemberExpression|AssignmentProperty} node * @returns {string}
lib/rules/no-mutating-props.js:154
↓ 3 callers
Function
getVExpressionContainerTokenInfo
* Get token information for the given VExpressionContainer node. * @param {VExpressionContainer} node
lib/rules/v-on-handler-style.js:239
↓ 3 callers
Function
hasConditionalDirective
(node: VElement)
lib/rules/v-if-else-key.ts:109
↓ 3 callers
Function
hasDirective
* Check whether the given start tag has specific directive. * @param {VElement} node The start tag node to check. * @param {string} name The directi
lib/utils/index.js:3278
↓ 3 callers
Function
hasWithDefaults
* Checks whether given defineProps call node has withDefaults. * @param {CallExpression} node The node of defineProps * @returns {node is CallExpres
lib/utils/index.js:3313
↓ 3 callers
Function
ignore
* Ignore all tokens of the given node.
lib/utils/indent-common.ts:562
↓ 3 callers
Function
isJSDocComment
( node: Comment )
lib/utils/comments.ts:1
↓ 3 callers
Function
isProperty
* Checks whether the given node is Property. * @param {Property | SpreadElement | AssignmentProperty} node * @returns {node is Property}
lib/utils/index.js:2518
↓ 3 callers
Function
isStringLiteral
* @param {ASTNode} node * @returns {node is Literal | TemplateLiteral}
lib/utils/index.js:3301
↓ 3 callers
Function
isTSInterfaceBody
* @param {TSESTreeTypeNode|TSESTreeTSInterfaceBody} node * @returns {node is TSESTreeTSInterfaceBody}
lib/utils/ts-utils/ts-ast.js:99
↓ 3 callers
Function
isTSTypeLiteral
* @param {TSESTreeTypeNode} node * @returns {node is TSESTreeTSTypeLiteral}
lib/utils/ts-utils/ts-ast.js:106
↓ 3 callers
Function
isVAttributeOrVBindOrVModel
* Check whether the given attribute is plain attribute, `v-bind` directive or `v-model` directive. * @param {VAttribute | VDirective | undefined | nu
lib/rules/attributes-order.js:59
↓ 3 callers
Function
isVBindObject
* Check whether the given attribute is `v-bind="..."` directive. * @param {VAttribute | VDirective | undefined | null} node * @returns { node is VBi
lib/rules/attributes-order.js:68
↓ 3 callers
Method
maybeReturnFunction
* @param {ComponentStack} component
lib/rules/no-use-computed-property-like-method.js:263
next →
1–100 of 2,001, ranked by callers