Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: rename
  • Loading branch information
antfu committed Oct 24, 2023
commit b3c724a2bf6ac31a1cade01c61c41e064869eaea
2 changes: 1 addition & 1 deletion lib/rules/component-name-in-template-casing.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module.exports = {
(!utils.isHtmlElementNode(node) && !utils.isSvgElementNode(node)) ||
utils.isHtmlWellKnownElementName(node.rawName) ||
utils.isSvgWellKnownElementName(node.rawName) ||
utils.isVueTemplateSyntaxName(node.rawName)
utils.isVueBuiltInElementName(node.rawName)
) {
return false
}
Expand Down
10 changes: 5 additions & 5 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const VUE2_BUILTIN_COMPONENT_NAMES = new Set(
const VUE3_BUILTIN_COMPONENT_NAMES = new Set(
require('./vue3-builtin-components')
)
const VUE_TEMPLATE_SYNTAX_NAMES = new Set(require('./vue-template-syntax'))
const VUE_BUILTIN_ELEMENT_NAMES = new Set(require('./vue-builtin-elements'))
const path = require('path')
const vueEslintParser = require('vue-eslint-parser')
const { traverseNodes, getFallbackKeys, NS } = vueEslintParser.AST
Expand Down Expand Up @@ -869,12 +869,12 @@ module.exports = {
},

/**
* Check whether the given name is Vue builtin template syntax name or not.
* Check whether the given name is Vue builtin element name or not.
* @param {string} name The name to check.
* @returns {boolean} `true` if the name is a builtin Vue template syntax name
* @returns {boolean} `true` if the name is a builtin Vue element name
*/
isVueTemplateSyntaxName(name) {
return VUE_TEMPLATE_SYNTAX_NAMES.has(name.toLowerCase())
isVueBuiltInElementName(name) {
return VUE_BUILTIN_ELEMENT_NAMES.has(name.toLowerCase())
},

/**
Expand Down
File renamed without changes.