Skip to content

Commit 063d3e0

Browse files
squash: Update tools/eslint-rules/func-name-matching.js
Co-authored-by: Louie Llaneta <louie.lou.llaneta@gmail.com>
1 parent fb84904 commit 063d3e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/eslint-rules/func-name-matching.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ module.exports = {
240240
}
241241
},
242242

243-
'Property[value.type="FunctionExpression"][value.id]'(node) {
243+
':matches(Property,PropertyDefinition)[value.type="FunctionExpression"][value.id]'(node) {
244244

245245
if (node.key.type === 'Identifier' && !node.computed) {
246246
const functionName = node.value.id.name;

0 commit comments

Comments
 (0)