We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ec1789 commit 3ec2248Copy full SHA for 3ec2248
src/rules/no-named-default.js
@@ -6,14 +6,11 @@ module.exports = {
6
create: function (context) {
7
return {
8
'ImportDeclaration': function (node) {
9
- if (node.source == null) return
10
-
11
node.specifiers.forEach(function (im) {
12
if (im.type === 'ImportSpecifier' && im.imported.name === 'default') {
13
context.report({
14
node: im.local,
15
- message: 'Use default import syntax to ' +
16
- 'import \'' + im.local.name + '\'.' })
+ message: `Use default import syntax to import \'${im.local.name}\'.` })
17
}
18
})
19
},
0 commit comments