From f9cf7a0532495382b2b1dd8d22b5740a5102019f Mon Sep 17 00:00:00 2001 From: Ben Mosher Date: Thu, 7 Jul 2016 14:29:27 -0400 Subject: [PATCH] removed `es6-symbol` completely, unneeded without for-of --- package.json | 1 - src/core/getExports.js | 1 - src/core/resolve.js | 1 - src/rules/namespace.js | 1 - src/rules/no-duplicates.js | 1 - src/rules/no-named-as-default-member.js | 1 - src/rules/no-unresolved.js | 2 -- tests/src/package.js | 8 +++----- 8 files changed, 3 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index eaf26849c..dec748097 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,6 @@ "doctrine": "1.2.x", "es6-map": "^0.1.3", "es6-set": "^0.1.4", - "es6-symbol": "^3.1.0", "eslint-import-resolver-node": "^0.2.0", "lodash.cond": "^4.3.0", "lodash.endswith": "^4.0.1", diff --git a/src/core/getExports.js b/src/core/getExports.js index ba47aa13d..22808eb5c 100644 --- a/src/core/getExports.js +++ b/src/core/getExports.js @@ -1,4 +1,3 @@ -import 'es6-symbol/implement' import Map from 'es6-map' import * as fs from 'fs' diff --git a/src/core/resolve.js b/src/core/resolve.js index 06dac6a33..140633f25 100644 --- a/src/core/resolve.js +++ b/src/core/resolve.js @@ -1,4 +1,3 @@ -import 'es6-symbol/implement' import Map from 'es6-map' import Set from 'es6-set' import assign from 'object-assign' diff --git a/src/rules/namespace.js b/src/rules/namespace.js index 643f45fdd..9b4d375d4 100644 --- a/src/rules/namespace.js +++ b/src/rules/namespace.js @@ -1,4 +1,3 @@ -import 'es6-symbol/implement' import Map from 'es6-map' import Exports from '../core/getExports' diff --git a/src/rules/no-duplicates.js b/src/rules/no-duplicates.js index 0b47d313b..1c573bd53 100644 --- a/src/rules/no-duplicates.js +++ b/src/rules/no-duplicates.js @@ -1,4 +1,3 @@ -import 'es6-symbol/implement' import Map from 'es6-map' import Set from 'es6-set' diff --git a/src/rules/no-named-as-default-member.js b/src/rules/no-named-as-default-member.js index 4bf5440e8..ba102e377 100644 --- a/src/rules/no-named-as-default-member.js +++ b/src/rules/no-named-as-default-member.js @@ -5,7 +5,6 @@ * See LICENSE in root directory for full license. */ -import 'es6-symbol/implement' import Map from 'es6-map' import Exports from '../core/getExports' diff --git a/src/rules/no-unresolved.js b/src/rules/no-unresolved.js index 5f1c1a8f9..71b92a6da 100644 --- a/src/rules/no-unresolved.js +++ b/src/rules/no-unresolved.js @@ -3,8 +3,6 @@ * @author Ben Mosher */ -import 'es6-symbol/implement' - import resolve from '../core/resolve' module.exports = function (context) { diff --git a/tests/src/package.js b/tests/src/package.js index 290a1f7a0..5bfc9ea5a 100644 --- a/tests/src/package.js +++ b/tests/src/package.js @@ -1,5 +1,3 @@ -import 'es6-symbol/implement' - var expect = require('chai').expect var path = require('path') @@ -36,10 +34,10 @@ describe('package', function () { it('exports all configs', function (done) { fs.readdir(path.join(process.cwd(), 'config'), function (err, files) { if (err) { done(err); return } - for (let file of files) { - if (file[0] === '.') continue + files.forEach(file => { + if (file[0] === '.') return expect(module.configs).to.have.property(file.slice(0, -3)) // drop '.js' - } + }) done() }) })