Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable no-unused-vars and remove them #218

Merged
merged 2 commits into from
Jul 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions fn/date/to-string.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var core = require('../../modules/es6.date.to-string')
, $toString = Date.prototype.toString;
require('../../modules/es6.date.to-string')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only side-effect

var $toString = Date.prototype.toString;
module.exports = function toString(it){
return $toString.call(it);
};
1 change: 0 additions & 1 deletion modules/_collection-strong.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
2 changes: 0 additions & 2 deletions modules/_typed-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down
2 changes: 0 additions & 2 deletions modules/_typed-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion modules/es6.number.to-fixed.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
1 change: 0 additions & 1 deletion modules/es6.typed.array-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't have side effect, right?

, speciesConstructor = require('./_species-constructor')
, $ArrayBuffer = buffer.ArrayBuffer
Expand Down
1 change: 0 additions & 1 deletion modules/es6.weak-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/es7.object.get-own-property-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down