We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
name
1 parent b3bfe56 commit 016672bCopy full SHA for 016672b
src/rules/no-named-default.js
@@ -1,5 +1,3 @@
1
-import has from 'has'
2
-
3
module.exports = {
4
meta: {
5
docs: {},
@@ -20,10 +18,7 @@ module.exports = {
20
18
node.specifiers.forEach(function (im) {
21
19
if (im.type !== type) return
22
23
- const isDefault = im.imported.name === 'default'
24
- const isNamed = has(im.local, 'name')
25
26
- if (isDefault && isNamed) {
+ if (im.imported.name === 'default') {
27
context.report(im.local,
28
'Using name \'' + im.local.name +
29
'\' as identifier for default export.')
0 commit comments