MCPcopy Create free account

hub / github.com/vuejs/eslint-plugin-vue / functions

Functions2,001 in github.com/vuejs/eslint-plugin-vue

↓ 1 callersFunctiongetReportNodes
* 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 callersFunctiongetRootObjectName
* 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 callersFunctiongetSlotDirectivesOnChildren
* 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 callersFunctiongetSlotDirectivesOnElement
* 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 callersFunctiongetSlotNameNode
* @param {VElement} node * @return {VAttribute | VDirective | undefined}
lib/rules/require-explicit-slots.js:42
↓ 1 callersFunctiongetSlotVForVariableIfUsingIterationVars
* 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 callersFunctiongetSlotsName
* @param {TypeElement} node * @return {string | null}
lib/rules/require-explicit-slots.js:18
↓ 1 callersFunctiongetStaticClassName
* @param {Literal | TemplateLiteral | TemplateElement | Identifier} staticClassNameNode * @returns {string | null}
lib/rules/prefer-separate-static-class.js:77
↓ 1 callersFunctiongetStringValue
* Get a string from given expression container node
lib/rules/no-bare-strings-in-template.ts:83
↓ 1 callersFunctiongetStylisticRule
* 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 callersFunctiongetSuggestion
* @param {VAttribute} node * @returns {Rule.SuggestionReportDescriptor}
lib/rules/no-template-target-blank.js:73
↓ 1 callersFunctiongetSystemModifiersString
* 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 callersFunctiongetTargetAttrs
* Get the attribute to be verified from the element name.
lib/rules/no-bare-strings-in-template.ts:198
↓ 1 callersFunctiongetTargetStatementPosition
* 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 callersFunctiongetToRefSet
()
lib/utils/property-references.ts:107
↓ 1 callersFunctiongetTokenAndCommentsBetween
* @param {VElement} prev * @param {VElement} next
lib/rules/padding-line-between-blocks.js:163
↓ 1 callersFunctiongetTokensAndComments
()
lib/utils/index.js:215
↓ 1 callersFunctiongetTopLevelHTMLElements
()
lib/rules/no-restricted-block.ts:73
↓ 1 callersFunctiongetTopLevelHTMLElements
* @returns {VElement[]}
lib/rules/padding-line-between-blocks.js:155
↓ 1 callersFunctiongetTopLevelHTMLElements
()
lib/rules/max-lines-per-block.js:72
↓ 1 callersFunctiongetTopLevelHTMLElements
()
lib/rules/block-order.ts:96
↓ 1 callersFunctiongetTypes
(targetNode: Expression)
lib/rules/require-valid-default-prop.ts:41
↓ 1 callersFunctiongetUpdateEventPropName
* Extract the prop name from an `update:propName` event directive argument.
lib/rules/prefer-v-model.ts:19
↓ 1 callersFunctiongetUserDefinedAllowedAttrs
@param {RuleContext} context
lib/rules/enforce-style-attribute.js:38
↓ 1 callersFunctiongetUsingIterationVars
* 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 callersFunctiongetUsingIterationVars
* 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 callersFunctiongetVExpressionContainer
* Gets the VExpressionContainer of a given node. * @param {ASTNode} node - The node to get. * @return {VExpressionContainer|null}
lib/utils/index.js:2726
↓ 1 callersFunctiongetVExpressionContainer
* @param {ASTNode} node * @returns {VExpressionContainer}
lib/rules/no-mutating-props.js:46
↓ 1 callersFunctiongetVariable
* 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 callersFunctiongetVueDeprecatedCallExpression
* @param {Identifier} identifier * @param {RuleContext} context * @returns {CallExpression|undefined}
lib/rules/no-deprecated-delete-set.js:55
↓ 1 callersFunctiongetVueNextTickCallExpression
* @param {Identifier} identifier * @param {RuleContext} context * @returns {CallExpression|undefined}
lib/rules/next-tick-style.js:17
↓ 1 callersFunctiongetVueNextTickNode
* @param {Identifier} identifier * @param {RuleContext} context * @returns {ASTNode|undefined}
lib/rules/valid-next-tick.js:17
↓ 1 callersFunctiongetWithDefaults
* 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 callersFunctiongetWithDefaultsProps
* 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 callersFunctiongroupAttrsByLine
* @param {(VDirective | VAttribute)[]} attributes
lib/rules/max-attributes-per-line.js:46
↓ 1 callersFunctiongroupByLineNumber
* 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 callersFunctiongroupEvents
* 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 callersFunctiongroupingVariables
* 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 callersFunctionhandleFix
* @param {RuleFixer} fixer * @param {Property} propertyNode * @param {Property} unorderedPropertyNode
lib/rules/order-in-components.js:269
↓ 1 callersFunctionhasAttributeSrc
* check whether has attribute `src` * @param {VElement} componentBlock
lib/rules/no-empty-component-block.js:13
↓ 1 callersFunctionhasConditionalRenderedSiblings
( node: VElement, componentName: string )
lib/rules/v-if-else-key.ts:30
↓ 1 callersFunctionhasDynamicLink
* @param {VStartTag} node
lib/rules/no-template-target-blank.js:56
↓ 1 callersFunctionhasEmptyLine
* 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 callersFunctionhasExternalLink
* @param {VStartTag} node
lib/rules/no-template-target-blank.js:42
↓ 1 callersFunctionhasFunctionType
* @param {Expression} node * @returns {boolean}
lib/rules/no-deprecated-props-default-this.js:20
↓ 1 callersFunctionhasInvalidModifiers
* 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 callersFunctionhasReferenceId
* 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 callersFunctionhasReferenceUpperElementVariable
* Checks whether the given node refers to a variable of the element.
lib/rules/no-literals-in-template.ts:56
↓ 1 callersFunctionhasSameSlotDirective
* 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 callersFunctionhasSecureRel
* @param {VStartTag} node * @param {boolean} allowReferrer
lib/rules/no-template-target-blank.js:22
↓ 1 callersFunctionhasSystemModifier
* Checks whether given any of provided modifiers * has system modifier * * @param {string[]} modifiers * @returns {boolean}
lib/rules/use-v-on-exact.js:68
↓ 1 callersFunctionidentifierNodeToVElementMatcher
* Convert Identifier node to VElementMatcher
lib/utils/selector.ts:341
↓ 1 callersFunctioninferEnumType
* @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 callersFunctioninferLiteralValueType
* @param {import('@typescript-eslint/types').TSESTree.Literal['value']} value * @returns {string | null}
lib/utils/ts-utils/ts-ast.js:569
↓ 1 callersFunctioninferTypeLiteralType
* @param {import('@typescript-eslint/types').TSESTree.TSTypeLiteral} node * @returns {string[]}
lib/utils/ts-utils/ts-ast.js:551
↓ 1 callersFunctioninferUnionType
* @param {import('@typescript-eslint/types').TSESTree.TSUnionType|import('@typescript-eslint/types').TSESTree.TSIntersectionType} node * @returns {
lib/utils/ts-utils/ts-ast.js:536
↓ 1 callersFunctioninsertLines
* @param {(Property | SpreadElement)} currentProperty * @param {(Property | SpreadElement | Token)} nextProperty * @param {RuleFixer} fixer
lib/rules/padding-lines-in-component-definition.js:202
↓ 1 callersFunctioninsertNewLine
* @param {RuleContext} context * @param {VElement} tag * @param {VElement} sibling * @param {number} lineDifference
lib/rules/padding-line-between-tags.js:25
↓ 1 callersFunctioninteropDefault
* @param {any} mod
tools/lib/rules.js:15
↓ 1 callersFunctionintersectionConstituents
* @param {Type} type * @returns {Type[]}
lib/utils/ts-utils/ts-types.js:352
↓ 1 callersFunctioninvalidTests
(ext: string)
tests/lib/utils/vue-component.test.ts:131
↓ 1 callersFunctionisAllowedComponent
* 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 callersFunctionisAllowedTarget
(name: string)
lib/rules/restricted-component-names.ts:52
↓ 1 callersFunctionisAllowedVarName
* @param {RuleContext} context * @param {string} variableName
lib/rules/no-template-shadow.js:27
↓ 1 callersFunctionisAlphabetical
* @param {VAttribute | VDirective} prevNode * @param {VAttribute | VDirective} currNode * @param {SourceCode} sourceCode
lib/rules/attributes-order.js:205
↓ 1 callersFunctionisArrayLikeObject
* 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 callersFunctionisAssignmentProperty
* Checks whether the given node is AssignmentProperty. * @param {AssignmentProperty | RestElement} node * @returns {node is AssignmentProperty}
lib/utils/index.js:2529
↓ 1 callersFunctionisAwaitedPromise
* @param {CallExpression} callExpression * @returns {boolean}
lib/rules/next-tick-style.js:73
↓ 1 callersFunctionisAwaitedPromise
* @param {CallExpression} callExpression * @returns {boolean}
lib/rules/valid-next-tick.js:61
↓ 1 callersFunctionisBeginningOfElement
* 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 callersFunctionisBeginningOfElement
* Check whether a given token is the first token of: * * - ExpressionStatement * - VExpressionContainer * - A parameter of CallExpression/
lib/utils/indent-common.ts:490
↓ 1 callersFunctionisBigIntLike
* 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 callersFunctionisBooleanIdentifier
* @param {Expression|undefined} node
lib/rules/no-boolean-default.js:17
↓ 1 callersFunctionisBooleanProp
* Detects whether given prop node is a Boolean * @param {ComponentObjectProp} prop * @return {Boolean}
lib/rules/no-boolean-default.js:26
↓ 1 callersFunctionisBooleanProp
* Detects whether given prop node is a Boolean * @param {ComponentObjectProp} prop * @return {Boolean}
lib/rules/require-default-prop.js:119
↓ 1 callersFunctionisButtonType
* * @param {string} type * @returns {type is 'button' | 'submit' | 'reset'}
lib/rules/html-button-has-type.js:14
↓ 1 callersFunctionisCamelCase
(str: string)
lib/utils/casing.ts:74
↓ 1 callersFunctionisCloseParen
@param {Token} token
lib/rules/no-shared-component-data.js:15
↓ 1 callersFunctionisCloseParen
@param {Token} token
lib/rules/no-deprecated-data-object-declaration.js:15
↓ 1 callersFunctionisClosingToken
* Check whether a given token is a closing token which triggers unindent.
lib/utils/indent-common.ts:169
↓ 1 callersFunctionisComma
* @param {Token} node
lib/rules/order-in-components.js:125
↓ 1 callersFunctionisCommentDirective
(comment: HTMLComment)
lib/utils/html-comments.ts:35
↓ 1 callersFunctionisConditionalGroup
@param {VElement[]} elements
lib/rules/no-duplicate-attr-inheritance.js:10
↓ 1 callersFunctionisDeclareStatement
* @param {ASTNode} node
lib/rules/define-macros-order.js:39
↓ 1 callersFunctionisDef
* Checks whether the given value is defined. * @template T * @param {T | null | undefined} v * @returns {v is T}
lib/utils/index.js:2323
↓ 1 callersMethodisDefinedComponent
* @see https://github.com/vuejs/core/blob/ae4b0783d78670b6e942ae2a4e3ec6efbbffa158/packages/compiler-core/src/transforms/transformElement.ts#L334
lib/rules/no-undef-components.ts:38
↓ 1 callersMethodisDefinedComponent
(rawName: string)
lib/rules/no-undef-components.ts:74
↓ 1 callersFunctionisDefinedInOptions
(rawName: string, definedNames: Set<string>)
lib/rules/no-undef-directives.ts:40
↓ 1 callersFunctionisDefinedInSetup
(rawName: string, definedNames: Set<string>)
lib/rules/no-undef-directives.ts:34
↓ 1 callersFunctionisDescendantCombinator
( node: parser.Node | null )
lib/utils/selector.ts:74
↓ 1 callersFunctionisDestructuringVar
* 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 callersFunctionisDirectlyFollowedByElse
* @param {VElement} element * @returns {boolean}
lib/rules/no-negated-v-if-condition.js:51
↓ 1 callersFunctionisDuplicate
* @param {string} name * @param {boolean} isDirective
lib/rules/no-duplicate-attributes.js:73
↓ 1 callersFunctionisEmpty
* 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 callersFunctionisEmpty
* Check whether the given element is empty or not. * This ignores whitespaces, doesn't ignore comments.
lib/rules/html-self-closing.ts:69
↓ 1 callersFunctionisEmpty
* 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 callersFunctionisEmptyLine
* 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 callersFunctionisExhaustiveSwitch
* 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 callersFunctionisFragmentTemplateAttribute
* @param {VAttribute | VDirective} attr
lib/rules/no-useless-template-attributes.js:42
↓ 1 callersFunctionisFullLineComment
* 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
← previousnext →501–600 of 2,001, ranked by callers