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
↓ 3 callers
Function
parse
* Parse a given comment. * @param {RegExp} pattern The RegExp pattern to parse. * @param {string} comment The comment value to parse. * @returns {(
lib/rules/comment-directive.js:35
↓ 3 callers
Method
processPattern
(node: Pattern, ctx: RefObjectReferenceContext)
lib/utils/ref-object-references.ts:435
↓ 3 callers
Function
processSemicolons
* Process semicolons of the given statement node.
lib/utils/indent-common.ts:442
↓ 3 callers
Function
report
* @param {ESNode} node * @param {string} messageId * @param {string} scopeName
lib/rules/no-setup-props-reactivity-loss.js:105
↓ 3 callers
Function
report
* @param {ASTNode} node * @param {string} messageId * @param {any} [data]
lib/rules/html-button-has-type.js:74
↓ 3 callers
Function
report
* @param {ASTNode} node * @param {string} name
lib/rules/no-mutating-props.js:140
↓ 3 callers
Function
verifyMutating
* @param {MemberExpression|Identifier} props * @param {string} name * @param {boolean} isRootProps
lib/rules/no-mutating-props.js:172
↓ 3 callers
Function
verifySource
* * @param {Literal & { value: string }} source * @param { () => boolean } fixable * @param {string[]} names Named bindings imported or
lib/rules/prefer-import-from-vue.js:71
↓ 3 callers
Function
verifyWithTsParser
( code: string, visitor: ScriptSetupVisitor, tsTestFilePath?: string, tsFileCode = '' )
tests/lib/utils/ts-utils/index/utils.ts:18
↓ 2 callers
Function
addEmitCall
* @param {CallExpression} node *
lib/rules/no-unused-emit-declarations.js:87
↓ 2 callers
Method
addName
(...names: string[])
lib/rules/no-undef-components.ts:29
↓ 2 callers
Method
addReturnValue
* @param {Expression | null} node
lib/rules/no-use-computed-property-like-method.js:256
↓ 2 callers
Function
buildAllowedPhrase
* @param {object} allowsOpt * @param {boolean} [allowsOpt.scriptSetup] * @param {boolean} [allowsOpt.composition] * @param {boolean} [allowsOpt.com
lib/rules/component-api-style.js:158
↓ 2 callers
Function
buildVElementMatcher
( selectorValue: string, test: (attrValue: string, selectorValue: string) => boolean )
lib/utils/selector.ts:302
↓ 2 callers
Function
callVisitor
* @param {string} key * @param {ESNode} node
lib/utils/index.js:1235
↓ 2 callers
Function
canConvert
( node: Expression | SpreadElement )
lib/rules/component-definition-name-casing.ts:10
↓ 2 callers
Function
canVerify
( node: Expression | SpreadElement )
lib/rules/no-reserved-component-names.ts:26
↓ 2 callers
Function
canVerify
( node: Expression | SpreadElement )
lib/rules/match-component-file-name.ts:9
↓ 2 callers
Function
checkKey
* Check the given element about `v-bind:key` attributes. * @param {RuleContext} context The rule context to report. * @param {VDirective} vFor The a
lib/rules/valid-v-for.js:64
↓ 2 callers
Function
checkMaxNumberOfProps
* @param {import('../utils').ComponentProp[]} props * @param {CallExpression | Property} node
lib/rules/max-props.js:44
↓ 2 callers
Function
checkNegatedCondition
* @param {VIfDirective} node
lib/rules/no-negated-v-if-condition.js:124
↓ 2 callers
Function
checkOrder
* @param {(Property | SpreadElement)[]} propertiesNodes
lib/rules/order-in-components.js:290
↓ 2 callers
Function
checkProp
(prop, context)
lib/rules/require-typed-object-prop.js:87
↓ 2 callers
Function
checkPropArrayType
(context, arrayNode)
lib/rules/require-typed-object-prop.js:51
↓ 2 callers
Function
checkProperty
* @param {ComponentProp} prop
lib/rules/require-prop-types.js:73
↓ 2 callers
Function
checkProperty
* @param {import('../utils').ComponentProp} prop
lib/rules/prefer-prop-type-boolean-first.js:68
↓ 2 callers
Function
cleanSelectorChildren
* Clean and get the selector child nodes.
lib/utils/selector.ts:83
↓ 2 callers
Function
collectReferenceIds
* Collect identifier id
lib/rules/no-ref-as-operand.ts:81
↓ 2 callers
Function
convertName
(node: Literal | TemplateLiteral)
lib/rules/component-definition-name-casing.ts:45
↓ 2 callers
Function
defineDocumentVisitor
* 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:2403
↓ 2 callers
Function
disable
* Disable rules. * @param {RuleContext} context The rule context. * @param {{line:number,column:number}} loc The location information to disable. *
lib/rules/comment-directive.js:96
↓ 2 callers
Function
enable
* Enable rules. * @param {RuleContext} context The rule context. * @param {{line:number,column:number}} loc The location information to enable. * @
lib/rules/comment-directive.js:72
↓ 2 callers
Function
extractExportNames
(m)
tools/update-vue3-export-names.js:29
↓ 2 callers
Function
extractFromIdentifier
* Extract the property references from id.
lib/utils/property-references.ts:426
↓ 2 callers
Function
extractFromObjectPattern
* Extract the property references from ObjectPattern.
lib/utils/property-references.ts:403
↓ 2 callers
Function
extractFromPattern
* Extract the property references from one parameter of the function.
lib/utils/property-references.ts:372
↓ 2 callers
Function
extractRefObjectReferences
( context: RuleContext )
lib/utils/ref-object-references.ts:503
↓ 2 callers
Function
extractTopLevelHTMLElements
* Extracts the top-level elements in document fragment. * @param {VDocumentFragment} documentFragment The document fragment. * @returns {VElement[]}
lib/rules/comment-directive.js:253
↓ 2 callers
Function
extractUsedForPattern
* Extract the use ref names. * @param {Identifier | MemberExpression} refsNode * @returns {void}
lib/rules/no-unused-refs.js:85
↓ 2 callers
Function
extractWithoutCache
()
lib/utils/property-references.ts:274
↓ 2 callers
Function
fixPropInOtherPlaces
( fixer: RuleFixer, propName: string, replaceKeyText: string )
lib/rules/no-restricted-props.ts:117
↓ 2 callers
Function
formatItems
(items, suffix)
tools/lib/utils.js:15
↓ 2 callers
Function
getBareString
* Gets the bare string from given string
lib/rules/no-bare-strings-in-template.ts:177
↓ 2 callers
Function
getBeforeElements
(element: VElement)
lib/utils/selector.ts:571
↓ 2 callers
Function
getClassNames
* @param {string} classList * @returns {string[]}
lib/rules/no-duplicate-class-names.js:117
↓ 2 callers
Function
getComponentEmitsFromDefine
* Get all emits by looking at all component's properties * @param {ObjectExpression|ArrayExpression} emitsNode Object with emits definition * @retur
lib/utils/index.js:3689
↓ 2 callers
Function
getComponentPropsFromDefine
* Get all props by looking at all component's properties * @param {ObjectExpression|ArrayExpression} propsNode Object with props definition * @retur
lib/utils/index.js:3628
↓ 2 callers
Method
getFirstTokens
( node: VNODE.HasLocation, options?: eslint.SourceCode.CursorWithCountOptions )
typings/eslint-plugin-vue/util-types/parser-services.ts:94
↓ 2 callers
Method
getFirstTokensBetween
( left: VNODE.HasLocation, right: VNODE.HasLocation, options?: eslint.SourceCode.CursorWithC
typings/eslint-plugin-vue/util-types/parser-services.ts:110
↓ 2 callers
Function
getIdentifierCallExpression
* Returns a call expression node if the given VOnExpression or BlockStatement consists * of only a single identifier call expression. * e.g. * @c
lib/rules/v-on-handler-style.js:79
↓ 2 callers
Function
getKeyName
* @param {VAttribute | VDirective} attr
lib/rules/no-useless-template-attributes.js:21
↓ 2 callers
Function
getLeftOfDefineProps
* Gets the pattern of the left operand of defineProps. * @param {CallExpression} node The node of defineProps * @returns {Pattern | null} The patter
lib/utils/index.js:3408
↓ 2 callers
Function
getLineIndentText
* Get the actual indentation of the given line. * * @param line The number of line. Begins with 1.
lib/rules/html-comment-indent.ts:125
↓ 2 callers
Function
getLineStartIndex
* Get position of the beginning of the token's line(or prevToken end if no line) * @param {ASTNode|Token} token * @param {ASTNode|Token} prevTok
lib/rules/define-macros-order.js:357
↓ 2 callers
Method
getNestNodes
(name: string)
lib/utils/property-references.ts:721
↓ 2 callers
Function
getNextSibling
* @param {VElement} node * @returns {VElement|null}
lib/rules/no-negated-v-if-condition.js:29
↓ 2 callers
Function
getObjectOrArray
* @param {RuleContext} context The rule context object. * @param {ESNode} node * @returns {ObjectExpression | ArrayExpression | null}
lib/utils/index.js:3749
↓ 2 callers
Function
getObjectPropertyMap
( object: ObjectExpression )
lib/rules/no-undef-properties.ts:28
↓ 2 callers
Function
getPhrase
* @param {number} lineBreaks
lib/rules/block-tag-newline.js:26
↓ 2 callers
Function
getPresetIds
(categoryIds)
tools/lib/utils.js:27
↓ 2 callers
Function
getPresetNames
(presetIds)
tools/lib/categories.js:73
↓ 2 callers
Function
getRawValue
@param {VLiteral | Literal | TemplateElement | null} node
lib/rules/no-duplicate-class-names.js:195
↓ 2 callers
Function
getRegisteredDirectives
( componentObject: ObjectExpression )
lib/rules/no-undef-directives.ts:9
↓ 2 callers
Function
getReportLocation
( parameters: VNODE.HasLocation[], firstReportedIndex: number )
lib/rules/prefer-single-event-payload.ts:26
↓ 2 callers
Function
getScriptRefsFromSetupFunction
* @param body {(Statement | ModuleDeclaration)[]} * @returns {ScriptRef[]} *
lib/rules/prefer-use-template-ref.js:18
↓ 2 callers
Function
getSemverRange
* Get the `semver.Range` object of a given range text. * It's null if the `x` is not a valid range text.
lib/rules/no-unsupported-features.ts:64
↓ 2 callers
Function
getSlotContext
* @param {VElement} element * @param {SourceCode} sourceCode * @returns {SlotContext}
lib/rules/syntaxes/utils/can-convert-to-v-slot.js:48
↓ 2 callers
Function
getStaticArgName
(directive: VDirective)
lib/rules/prefer-v-model.ts:11
↓ 2 callers
Method
getTokensAfter
( node: VNODE.HasLocation, options?: eslint.SourceCode.CursorWithCountOptions )
typings/eslint-plugin-vue/util-types/parser-services.ts:106
↓ 2 callers
Function
getVForUsingIterationVar
@param {VDirective} vIf
lib/rules/no-use-v-if-with-v-for.js:20
↓ 2 callers
Function
getVSlotVForVariableIfUsingIterationVars
* Gets the `v-for` directive and variable that provide the variables used by the given` v-slot` directive. * @param {VDirective} vSlot The current `v
lib/rules/valid-v-slot.js:169
↓ 2 callers
Function
getValueType
( targetNode: Expression )
lib/rules/require-valid-default-prop.ts:129
↓ 2 callers
Function
getVueComponentContextForTemplate
()
lib/rules/no-undef-properties.ts:212
↓ 2 callers
Function
getVueObjectType
* If the given object is a Vue component or instance, returns the Vue definition type. * @param {RuleContext} context The ESLint rule context object.
lib/utils/index.js:3006
↓ 2 callers
Function
handleObjectProp
(prop, defaultProps)
lib/rules/no-required-prop-with-default.js:53
↓ 2 callers
Function
hasAttribute
* Check whether the given start tag has specific directive. * @param {VElement} node The start tag node to check. * @param {string} name The attribu
lib/utils/index.js:3267
↓ 2 callers
Function
hasReferenceUpperElementVariable
* Checks whether the given node refers to a variable of the element. * @param {Expression | VOnExpression} node
lib/rules/v-on-handler-style.js:278
↓ 2 callers
Function
hasUpper
* Checks whether the given string has uppercase.
lib/utils/casing.ts:18
↓ 2 callers
Function
httpGet
(url)
tools/lib/http.js:4
↓ 2 callers
Function
inferRuntimeType
* @param {RuleContext} context The ESLint rule context object. * @param {TSESTreeTypeNode} node * @param {Set<TSESTreeTypeNode>} [checked] * @retur
lib/utils/ts-utils/ts-ast.js:366
↓ 2 callers
Function
inferRuntimeTypeFromTypeNode
* @param {RuleContext} context The ESLint rule context object. * @param {TypeNode|Expression} node * @returns {string[]}
lib/utils/ts-utils/ts-types.js:162
↓ 2 callers
Function
inferRuntimeTypeInternal
* @param {Type} type * @param {Services} services * @returns {string[]}
lib/utils/ts-utils/ts-types.js:202
↓ 2 callers
Method
insertTextBeforeRange
(range: AST.Range, text: string)
typings/eslint/index.d.ts:382
↓ 2 callers
Function
isAllowed
* Copied from the core rule `no-console`. * Checks whether the property name of the given MemberExpression node * is allowed by options or n
lib/rules/no-console.js:23
↓ 2 callers
Function
isBlockComment
( node: Comment )
lib/utils/comments.ts:8
↓ 2 callers
Function
isBooleanLike
* Check if a given type is an boolean-like type or not. * @param {Type} tsType The type to check. * @returns {boolean} `true` if the type is a boole
lib/utils/ts-utils/typescript.js:173
↓ 2 callers
Function
isCustomComponentWithoutCondition
(node: VElement)
lib/rules/v-if-else-key.ts:159
↓ 2 callers
Function
isEffectivelyUnreachable
* Treat spurious segments the same as unreachable. * @param {CodePathSegment} segment
lib/utils/index.js:1855
↓ 2 callers
Function
isFalsy
* Checks if the given node value is falsy. * @param {Expression} node The node to check * @returns {boolean} If `true`, the given node value is fals
lib/rules/return-in-emits-validator.js:19
↓ 2 callers
Function
isForbiddenType
* @param {ESNode} node
lib/rules/require-prop-type-constructor.js:24
↓ 2 callers
Function
isFunction
* Check if a given type is `function` or not. * @param {Type} tsType The type to check.
lib/utils/ts-utils/typescript.js:202
↓ 2 callers
Function
isFunction
* @param {Expression} node * @returns {boolean}
lib/rules/require-expose.js:115
↓ 2 callers
Function
isIdentifierCallExpression
* Check whether the given node is an identifier call expression. e.g. `foo()` * @param {Expression} node The node to check. * @returns {node is Call
lib/rules/v-on-handler-style.js:57
↓ 2 callers
Function
isInScriptSetup
* @param {ESNode} node
lib/utils/index.js:1362
↓ 2 callers
Function
isKebabCase
(str: string)
lib/utils/casing.ts:35
↓ 2 callers
Function
isModule
* check whether a tag has the `module` attribute * @param {VElement} componentBlock
lib/rules/enforce-style-attribute.js:23
↓ 2 callers
Function
isPropsMemberAccessed
* @param {Expression | Super} node * @param {ScopePropsReferences} propsReferences
lib/rules/no-setup-props-reactivity-loss.js:187
↓ 2 callers
Function
isScoped
* check whether a tag has the `scoped` attribute * @param {VElement} componentBlock
lib/rules/enforce-style-attribute.js:13
↓ 2 callers
Function
isShallowOnlyInvalid
* Is shallowOnly false or the prop reassigned * @param {Exclude<ReturnType<typeof utils.findMutating>, null>} invalid * @param {boolean} isR
lib/rules/no-mutating-props.js:287
↓ 2 callers
Function
isUpdate
* Checks whether writing assigns a value to the given pattern.
lib/rules/no-ref-object-reactivity-loss.ts:14
← previous
next →
101–200 of 2,001, ranked by callers