Skip to content

Commit

Permalink
New: no-unused-modules rule - removed destructoring of context.getF…
Browse files Browse the repository at this point in the history
…ilename

Signed-off-by: René Fermann <rene.fermann@gmx.de>
  • Loading branch information
rfermann committed Jul 31, 2018
1 parent 153599d commit fd1ccc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rules/no-unused-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,13 @@ module.exports = {
},

create: context => {
const { getFilename } = context
const { src, ignore, missingExports = false, unusedExports = false } = context.options[0]

if (unusedExports && !preparationDone) {
doPreparation(src, ignore, context)
}

const file = getFilename()
const file = context.getFilename()

const checkExportPresence = node => {
if (ignoredFiles.has(file)) {
Expand Down

0 comments on commit fd1ccc0

Please sign in to comment.