Skip to content

Commit 3431adc

Browse files
author
Robert Jackson
committed
Fix remaining linting issues.
1 parent b5f3d00 commit 3431adc

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

src/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const normalizeOptions = require('./utils/normalize-options').normalizeOptions;
77
function macros(babel) {
88
const t = babel.types;
99

10-
let macroBuilder;
1110
let options;
1211

1312
return {
@@ -24,12 +23,9 @@ function macros(babel) {
2423
if (item.isImportDeclaration()) {
2524
let importPath = item.node.source.value;
2625

27-
let featureSources = options.featureSources;
2826
let debugToolsImport = options.debugTools.debugToolsImport;
2927
let envFlagsImport = options.envFlags.envFlagsImport;
3028

31-
let isFeaturesImport = featureSources.indexOf(importPath) > -1;
32-
3329
if (debugToolsImport && debugToolsImport === importPath) {
3430
this.macroBuilder.collectDebugToolsSpecifiers(item.get('specifiers'));
3531
}

src/utils/builder.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ module.exports = class Builder {
104104
callExpression = this._createConsoleAPI(options.consoleAPI || callee, args);
105105
}
106106

107-
let identifiers = this._getIdentifiers(args);
108107
let prefixedIdentifiers = [];
109108

110109
if (options.predicate) {

tests/create-tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function createTests(options) {
117117
let references = binding.referencePaths;
118118

119119
let replacements = [];
120-
for (let reference of references) {
120+
references.forEach(() => {
121121
replacements.push(
122122
t.variableDeclaration('var', [
123123
t.variableDeclarator(
@@ -126,7 +126,7 @@ function createTests(options) {
126126
),
127127
])
128128
);
129-
}
129+
});
130130

131131
path.remove();
132132
importDeclarationPath.insertAfter(replacements);

tests/ensure-baseDir-test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
const fs = require('fs');
4-
const path = require('path');
53
const DebugToolsPlugin = require('..');
64

75
describe('baseDir', function() {

0 commit comments

Comments
 (0)