Skip to content

Commit 939267a

Browse files
committed
chore: Add missing type to match-component-file-name and fix typos in comments
1 parent 925190f commit 939267a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/rules/match-component-file-name.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const path = require('path')
1818

1919
module.exports = {
2020
meta: {
21+
type: 'suggestion',
2122
docs: {
2223
description: 'require component name property to match its file name',
2324
category: undefined,

lib/utils/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ module.exports = {
264264

265265
/**
266266
* Check whether the given name is a MathML element or not.
267-
* @param {ASTNode} name The node to check.
267+
* @param {ASTNode} node The node to check.
268268
* @returns {boolean} `true` if the node is a MathML element.
269269
*/
270270
isMathMLElementNode (node) {
@@ -307,7 +307,7 @@ module.exports = {
307307

308308
/**
309309
* Check whether the given attribute node is a binding
310-
* @param {ASTNode} name The attribute to check.
310+
* @param {ASTNode} attribute The attribute to check.
311311
* @returns {boolean}
312312
*/
313313
isBindingAttribute (attribute) {
@@ -327,7 +327,7 @@ module.exports = {
327327

328328
/**
329329
* Parse member expression node to get array with all of its parts
330-
* @param {ASTNode} MemberExpression
330+
* @param {ASTNode} node MemberExpression
331331
* @returns {Array}
332332
*/
333333
parseMemberExpression (node) {
@@ -605,7 +605,7 @@ module.exports = {
605605
/**
606606
* Return generator with all properties
607607
* @param {ASTNode} node Node to check
608-
* @param {string} groupName Name of parent group
608+
* @param {Set} groups Name of parent group
609609
*/
610610
* iterateProperties (node, groups) {
611611
const nodes = node.properties.filter(p => p.type === 'Property' && groups.has(this.getStaticPropertyName(p.key)))

0 commit comments

Comments
 (0)