Skip to content

Commit 89f7ec3

Browse files
committed
ArrowFunctionExpression
1 parent 9b52893 commit 89f7ec3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rules/component-data.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ function create (context) {
2525
.filter(p =>
2626
p.key.type === 'Identifier' &&
2727
p.key.name === 'data' &&
28-
p.value.type !== 'FunctionExpression' &&
29-
p.value.type !== 'ArrowFunctionExpression'
28+
p.value.type !== 'FunctionExpression'
3029
)
3130

3231
dataPropertiesNode.forEach(cp => {

0 commit comments

Comments
 (0)