Remove obsolete max-len eslint rule and reformat some stuff to fit (#7602)

This commit is contained in:
Daniel Tschinder
2018-03-20 14:51:47 +01:00
committed by Brian Ng
parent 6d6fe844fd
commit f0d681a238
14 changed files with 62 additions and 55 deletions

View File

@@ -88,14 +88,16 @@ export default declare((api, options) => {
}
`);
/* eslint-disable max-len */
const buildForOf = template(`
var ITERATOR_COMPLETION = true;
var ITERATOR_HAD_ERROR_KEY = false;
var ITERATOR_ERROR_KEY = undefined;
try {
for (var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY; !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done); ITERATOR_COMPLETION = true) {
}
for (
var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY;
!(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done);
ITERATOR_COMPLETION = true
) {}
} catch (err) {
ITERATOR_HAD_ERROR_KEY = true;
ITERATOR_ERROR_KEY = err;
@@ -111,7 +113,6 @@ export default declare((api, options) => {
}
}
`);
/* eslint-enable max-len */
function _ForOfStatementArray(path) {
const { node, scope } = path;