Skip to content

Commit 0bc6ccf

Browse files
authored
Merge pull request code-dot-org#10295 from code-dot-org/no-duplicate-imports
Lint duplicate imports
2 parents 7df268f + 24ffa55 commit 0bc6ccf

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module.exports = {
3737
"keyword-spacing": "error",
3838
"no-array-constructor": "error",
3939
"no-console": "off",
40+
"no-duplicate-imports": "error",
4041
"no-empty": "off",
4142
"no-eval": "error",
4243
"no-extra-boolean-cast": "off",

apps/src/authoredHints.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ var authoredHintUtils = require('./authoredHintUtils');
1414
var Lightbulb = require('./templates/Lightbulb');
1515

1616
import { setHasAuthoredHints } from './redux/instructions';
17-
import authoredHintsReducer from './redux/authoredHints';
1817
import {
1918
enqueueHints,
2019
showNextHint,

apps/src/maze/bee.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import Gatherer from './gatherer';
33
import mazeMsg from './locale';
44
import BeeCell from './beeCell';
55
import BeeItemDrawer from './beeItemDrawer';
6-
import { TestResults } from '../constants.js';
7-
import { BeeTerminationValue as TerminationValue } from '../constants.js';
6+
import {
7+
TestResults,
8+
BeeTerminationValue as TerminationValue
9+
} from '../constants.js';
810

911
const UNLIMITED_HONEY = -99;
1012
const UNLIMITED_NECTAR = 99;

apps/src/maze/harvester.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import Gatherer from './gatherer';
22
import HarvesterCell from './harvesterCell';
33
import HarvesterDrawer from './harvesterDrawer';
44
import mazeMsg from './locale';
5-
import { HarvesterTerminationValue } from '../constants.js';
6-
import { TestResults } from '../constants.js';
5+
import { HarvesterTerminationValue, TestResults } from '../constants.js';
76

87
export default class Harvester extends Gatherer {
98

apps/src/maze/scrat.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import {SquareType} from './tiles';
2-
import {Direction} from './tiles';
1+
import {SquareType, Direction} from './tiles';
32
import _ from 'lodash';
43

54
import Subtype from './subtype';

apps/test/unit/gamelab/GameLabSpriteTest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
/* global p5 */
33
import {spy, stub} from 'sinon';
44
import {expect} from '../../util/configuredChai';
5-
import createGameLabP5 from '../../util/gamelab/TestableGameLabP5';
6-
import {createStatefulGameLabP5} from '../../util/gamelab/TestableGameLabP5';
5+
import createGameLabP5, {createStatefulGameLabP5} from '../../util/gamelab/TestableGameLabP5';
76

87
describe('GameLabSprite', function () {
98
let gameLabP5, createSprite;

0 commit comments

Comments
 (0)