Skip to content

Commit 8b746bb

Browse files
committed
refactor
1 parent f539191 commit 8b746bb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: lib/rules/no-import-compiler-macros.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ module.exports = {
4747

4848
return {
4949
ImportDeclaration(node) {
50-
if (node.specifiers.length === 0) return
51-
52-
if (!VUE_MODULES.has(node.source.value)) return
50+
if (node.specifiers.length === 0 || !VUE_MODULES.has(node.source.value))
51+
return
5352

5453
for (const specifier of node.specifiers) {
5554
if (

0 commit comments

Comments
 (0)