Skip to content

Commit

Permalink
[Dev Deps] update eslint, jscs, tape, @ljharb/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 28, 2017
1 parent 5ed97f5 commit 854288b
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"extends": "@ljharb",

"rules": {
"func-name-matching": 0,
"indent": [2, 4],
"max-nested-callbacks": [2, 3],
"max-params": [2, 3],
Expand Down
21 changes: 19 additions & 2 deletions .jscs.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

"disallowSpacesInsideArrayBrackets": true,

"disallowQuotedKeysInObjects": "allButReserved",
"disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },

"disallowSpaceAfterObjectKeys": true,

Expand Down Expand Up @@ -154,6 +154,23 @@

"requireCapitalizedConstructorsNew": {
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
}
},

"requireImportAlphabetized": false,

"requireSpaceBeforeObjectValues": true,
"requireSpaceBeforeDestructuredValues": true,

"disallowSpacesInsideTemplateStringPlaceholders": true,

"disallowArrayDestructuringReturn": false,

"requireNewlineBeforeSingleStatementsInIf": false,

"disallowUnusedVariables": true,

"requireSpacesInsideImportedObjectBraces": true,

"requireUseStrict": true
}

4 changes: 4 additions & 0 deletions implementation.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'use strict';

/* eslint no-invalid-this: 1 */

var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
var slice = Array.prototype.slice;
var toStr = Object.prototype.toString;
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var implementation = require('./implementation');

module.exports = Function.prototype.bind || implementation;
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
},
"dependencies": {},
"devDependencies": {
"tape": "^4.6.0",
"@ljharb/eslint-config": "^12.2.1",
"covert": "^1.1.0",
"jscs": "^3.0.6",
"eslint": "^3.0.0",
"@ljharb/eslint-config": "^6.0.0"
"eslint": "^4.5.0",
"jscs": "^3.0.7",
"tape": "^4.8.0"
},
"license": "MIT",
"scripts": {
Expand Down Expand Up @@ -60,4 +60,3 @@
]
}
}

5 changes: 4 additions & 1 deletion test/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"rules": {
"array-bracket-newline": 0,
"array-element-newline": 0,
"max-statements-per-line": [2, { "max": 2 }],
"no-magic-numbers": 0
"no-invalid-this": 0,
"no-magic-numbers": 0,
}
}
2 changes: 2 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// jscs:disable requireUseStrict

var test = require('tape');

var functionBind = require('../implementation');
Expand Down

0 comments on commit 854288b

Please sign in to comment.