mirror of
https://github.com/hanzoai/es5-ext.git
synced 2026-09-24 16:58:43 +00:00
style: upgrade lint settings
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ var toPosInt = require("../../number/to-pos-integer")
|
||||
, slice = Array.prototype.slice, apply = Function.prototype.apply
|
||||
, curry;
|
||||
|
||||
curry = function self (fn, length, preArgs) {
|
||||
curry = function self(fn, length, preArgs) {
|
||||
return defineLength(function () {
|
||||
var args = preArgs
|
||||
? preArgs.concat(slice.call(arguments, 0, length - preArgs.length))
|
||||
|
||||
@@ -6,7 +6,7 @@ var compact = require("../array/#/compact")
|
||||
, isArray = Array.isArray
|
||||
, stringify = JSON.stringify;
|
||||
|
||||
module.exports = function self (value /*, replacer, space*/) {
|
||||
module.exports = function self(value /*, replacer, space*/) {
|
||||
var replacer = arguments[1], space = arguments[2];
|
||||
try {
|
||||
return stringify(value, replacer, space);
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ var isPlainObject = require("./is-plain-object")
|
||||
|
||||
, process;
|
||||
|
||||
process = function self (value, key) {
|
||||
process = function self(value, key) {
|
||||
if (isPlainObject(value)) forEach(value, self, this);
|
||||
else this[key] = value;
|
||||
};
|
||||
|
||||
@@ -40,7 +40,7 @@ module.exports = (function (status) {
|
||||
};
|
||||
}
|
||||
} else {
|
||||
fn = function self (obj, prototype) {
|
||||
fn = function self(obj, prototype) {
|
||||
var isNullBase;
|
||||
validate(obj, prototype);
|
||||
isNullBase = objIsPrototypOf.call(self.nullPolyfill, obj);
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^4.6.1",
|
||||
"eslint-config-medikoo-es5": "^1.4.2",
|
||||
"eslint-config-medikoo-es5": "^1.4.3",
|
||||
"tad": "~0.2.7"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
module.exports = function (t, a) {
|
||||
var foo = "raz", bar = "dwa";
|
||||
// eslint-disable-next-line func-names
|
||||
var fn = function marko (a, b) {
|
||||
var fn = function marko(a, b) {
|
||||
return this + a + b + foo + bar;
|
||||
};
|
||||
var result, o = {};
|
||||
|
||||
Reference in New Issue
Block a user