Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix eslint-plugin-vue lib
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Nov 14, 2020
1 parent 7153272 commit eb86cee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ module.exports = Object.assign(
{
getProperty (node, name, condition) {
return node.properties.find(
p => p.type === 'Property' && name === utils.getStaticPropertyName(p.key) && condition(p)
p => p.type === 'Property' && name === utils.getStaticPropertyName(p) && condition(p)
)
},
getProperties (node, names) {
return node.properties.filter(
p => p.type === 'Property' && (!names.size || names.has(utils.getStaticPropertyName(p.key)))
p => p.type === 'Property' && (!names.size || names.has(utils.getStaticPropertyName(p)))
)
},
getFunctionWithName (rootNode, name) {
Expand All @@ -35,7 +35,7 @@ module.exports = Object.assign(

for (const func of funcNodes) {
for (const { name, node: child } of childNodes) {
const funcName = utils.getStaticPropertyName(func.key)
const funcName = utils.getStaticPropertyName(func)
if (!funcName) continue

if (this.isInFunction(func, child)) {
Expand Down

0 comments on commit eb86cee

Please sign in to comment.