Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 29, 2016
1 parent 3e5bde7 commit 5139dd8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"max-depth": [2, 5],
"max-nested-callbacks": [2, 3],
"max-statements": [1, 10],
"max-statements-per-line": [2, { "max": 2 }],
"no-extra-parens": [1],
"no-implicit-coercion": [2, {
"boolean": false,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"make-arrow-function": "^1.1.0",
"make-generator-function": "^1.1.0",
"semver": "^5.1.0",
"eslint": "^2.10.2",
"@ljharb/eslint-config": "^4.0.1",
"eslint": "^2.11.0",
"@ljharb/eslint-config": "^5.0.0",
"nsp": "^2.4.0",
"replace": "^0.3.0",
"es6-shim": "^0.35.1",
Expand Down
2 changes: 2 additions & 0 deletions test/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,15 @@ test('iterables', function (t) {

st.test('Sets with strings as iterables', function (sst) {
var ab;
// eslint-disable-next-line max-statements-per-line
try { ab = new Set('ab'); } catch (e) { ab = new Set(); } // node 0.12 throws when given a string
if (ab.size !== 2) {
// work around IE 11 (and others) bug accepting iterables
ab.add('a');
ab.add('b');
}
var ac;
// eslint-disable-next-line max-statements-per-line
try { ac = new Set('ac'); } catch (e) { ac = new Set(); } // node 0.12 throws when given a string
if (ab.size !== 2) {
// work around IE 11 (and others) bug accepting iterables
Expand Down
2 changes: 2 additions & 0 deletions test/why.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,15 @@ test('iterables', function (t) {

st.test('Sets with strings as iterables', function (sst) {
var ab;
// eslint-disable-next-line max-statements-per-line
try { ab = new Set('ab'); } catch (e) { ab = new Set(); } // node 0.12 throws when given a string
if (ab.size !== 2) {
// work around IE 11 (and others) bug accepting iterables
ab.add('a');
ab.add('b');
}
var ac;
// eslint-disable-next-line max-statements-per-line
try { ac = new Set('ac'); } catch (e) { ac = new Set(); } // node 0.12 throws when given a string
if (ac.size !== 2) {
// work around IE 11 (and others) bug accepting iterables
Expand Down

0 comments on commit 5139dd8

Please sign in to comment.