-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix eslint and get all tests passing
- Loading branch information
1 parent
f847f0c
commit ba00559
Showing
6 changed files
with
906 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
{ | ||
"extends": ["airbnb-base"], | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2019, | ||
"sourceType": "module" | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
"no-param-reassign": "off", | ||
"no-plusplus": "off", | ||
"no-shadow": "off", | ||
"no-underscore-dangle": "off", | ||
"no-use-before-define": "off", | ||
"import/order": "off", | ||
"implicit-arrow-linebreak": "off", | ||
"object-curly-newline": "off", | ||
"operator-linebreak": "off" | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "commonjs" | ||
} | ||
} |
28 changes: 16 additions & 12 deletions
28
__tests__/__fixtures__/complex/shallow-iterable/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
let _determination = true; | ||
for (let _key = 0, _length = item.length, _v, _result; _key < _length; ++_key) { | ||
_v = item[_key]; | ||
_result = typeof _v === 'string'; | ||
if (!_result) { | ||
_determination = false; | ||
break; | ||
} | ||
} | ||
const _length2 = array.length; | ||
const _results2 = Array(_length2); | ||
const _results = Array(_length2); | ||
for (let _key2 = 0, _item; _key2 < _length2; ++_key2) { | ||
_item = array[_key2]; | ||
_results2[_key2] = _determination; | ||
let _determination = true; | ||
for ( | ||
let _key3 = 0, _length3 = _item.length, _v2, _result3; | ||
_key3 < _length3; | ||
++_key3 | ||
) { | ||
_v2 = _item[_key3]; | ||
_result3 = typeof _v2 === 'string'; | ||
if (!_result3) { | ||
_determination = false; | ||
break; | ||
} | ||
} | ||
_results[_key2] = _determination; | ||
} | ||
const allStrings = _results2; | ||
const allStrings = _results; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.