diff --git a/.eslintrc b/.eslintrc index 0e1824d075e2..f88bd008e529 100644 --- a/.eslintrc +++ b/.eslintrc @@ -29,6 +29,7 @@ "no-mixed-requires": 0, "no-loop-func": 0, "no-unused-expressions": 0, + "no-unused-vars": [2, {"args": "none"}], "curly": 0, "max-nested-callbacks": [2, 4], "no-multiple-empty-lines": 2 diff --git a/fn/date/to-string.js b/fn/date/to-string.js index 1bca5e3d9da3..c39d55227885 100644 --- a/fn/date/to-string.js +++ b/fn/date/to-string.js @@ -1,5 +1,5 @@ -var core = require('../../modules/es6.date.to-string') - , $toString = Date.prototype.toString; +require('../../modules/es6.date.to-string') +var $toString = Date.prototype.toString; module.exports = function toString(it){ return $toString.call(it); }; \ No newline at end of file diff --git a/modules/_collection-strong.js b/modules/_collection-strong.js index 82baaa42c3db..55e4b6158d8b 100644 --- a/modules/_collection-strong.js +++ b/modules/_collection-strong.js @@ -1,7 +1,6 @@ 'use strict'; var dP = require('./_object-dp').f , create = require('./_object-create') - , hide = require('./_hide') , redefineAll = require('./_redefine-all') , ctx = require('./_ctx') , anInstance = require('./_an-instance') diff --git a/modules/_typed-array.js b/modules/_typed-array.js index f71d59b5751f..b072b23b0878 100644 --- a/modules/_typed-array.js +++ b/modules/_typed-array.js @@ -11,7 +11,6 @@ if(require('./_descriptors')){ , propertyDesc = require('./_property-desc') , hide = require('./_hide') , redefineAll = require('./_redefine-all') - , isInteger = require('./_is-integer') , toInteger = require('./_to-integer') , toLength = require('./_to-length') , toIndex = require('./_to-index') @@ -25,7 +24,6 @@ if(require('./_descriptors')){ , create = require('./_object-create') , getPrototypeOf = require('./_object-gpo') , gOPN = require('./_object-gopn').f - , isIterable = require('./core.is-iterable') , getIterFn = require('./core.get-iterator-method') , uid = require('./_uid') , wks = require('./_wks') diff --git a/modules/_typed-buffer.js b/modules/_typed-buffer.js index 26d2b9c2110f..2129eea40fc1 100644 --- a/modules/_typed-buffer.js +++ b/modules/_typed-buffer.js @@ -21,13 +21,11 @@ var global = require('./_global') , $ArrayBuffer = global[ARRAY_BUFFER] , $DataView = global[DATA_VIEW] , Math = global.Math - , parseInt = global.parseInt , RangeError = global.RangeError , Infinity = global.Infinity , BaseBuffer = $ArrayBuffer , abs = Math.abs , pow = Math.pow - , min = Math.min , floor = Math.floor , log = Math.log , LN2 = Math.LN2 diff --git a/modules/es6.number.to-fixed.js b/modules/es6.number.to-fixed.js index 45f8a2431422..c54970d6aea9 100644 --- a/modules/es6.number.to-fixed.js +++ b/modules/es6.number.to-fixed.js @@ -1,6 +1,5 @@ 'use strict'; var $export = require('./_export') - , anInstance = require('./_an-instance') , toInteger = require('./_to-integer') , aNumberValue = require('./_a-number-value') , repeat = require('./_string-repeat') diff --git a/modules/es6.typed.array-buffer.js b/modules/es6.typed.array-buffer.js index c7119a817aae..9f47082c2972 100644 --- a/modules/es6.typed.array-buffer.js +++ b/modules/es6.typed.array-buffer.js @@ -6,7 +6,6 @@ var $export = require('./_export') , toIndex = require('./_to-index') , toLength = require('./_to-length') , isObject = require('./_is-object') - , TYPED_ARRAY = require('./_wks')('typed_array') , ArrayBuffer = require('./_global').ArrayBuffer , speciesConstructor = require('./_species-constructor') , $ArrayBuffer = buffer.ArrayBuffer diff --git a/modules/es6.weak-map.js b/modules/es6.weak-map.js index 431ac56b233a..4109db336ff3 100644 --- a/modules/es6.weak-map.js +++ b/modules/es6.weak-map.js @@ -5,7 +5,6 @@ var each = require('./_array-methods')(0) , assign = require('./_object-assign') , weak = require('./_collection-weak') , isObject = require('./_is-object') - , has = require('./_has') , getWeak = meta.getWeak , isExtensible = Object.isExtensible , uncaughtFrozenStore = weak.ufstore diff --git a/modules/es7.object.get-own-property-descriptors.js b/modules/es7.object.get-own-property-descriptors.js index 131bfecc2d4d..0242b7a0c71d 100644 --- a/modules/es7.object.get-own-property-descriptors.js +++ b/modules/es7.object.get-own-property-descriptors.js @@ -12,7 +12,7 @@ $export($export.S, 'Object', { , keys = ownKeys(O) , result = {} , i = 0 - , key, D; + , key; while(keys.length > i)createProperty(result, key = keys[i++], getDesc(O, key)); return result; }