diff --git a/packages/babel-parser/test/fixtures/core/opts/allowAwaitOutsideFunction-false/options.json b/packages/babel-parser/test/fixtures/core/opts/allowAwaitOutsideFunction-false/options.json index 01bcb0a20e..40babbccd7 100644 --- a/packages/babel-parser/test/fixtures/core/opts/allowAwaitOutsideFunction-false/options.json +++ b/packages/babel-parser/test/fixtures/core/opts/allowAwaitOutsideFunction-false/options.json @@ -1,3 +1,3 @@ { "throws": "Unexpected token, expected \"(\" (1:4)" -} \ No newline at end of file +} diff --git a/packages/babel-parser/test/fixtures/es2015/let/let-as-identifier-strict-fail/options.json b/packages/babel-parser/test/fixtures/es2015/let/let-as-identifier-strict-fail/options.json index 8773675903..11643dc9d9 100644 --- a/packages/babel-parser/test/fixtures/es2015/let/let-as-identifier-strict-fail/options.json +++ b/packages/babel-parser/test/fixtures/es2015/let/let-as-identifier-strict-fail/options.json @@ -1,3 +1,3 @@ { "throws": "let is a reserved word in strict mode (2:0)" -} \ No newline at end of file +} diff --git a/packages/babel-parser/test/fixtures/es2015/yield/in-iterator-stmt/options.json b/packages/babel-parser/test/fixtures/es2015/yield/in-iterator-stmt/options.json index 518b8850b1..ad46a65e50 100644 --- a/packages/babel-parser/test/fixtures/es2015/yield/in-iterator-stmt/options.json +++ b/packages/babel-parser/test/fixtures/es2015/yield/in-iterator-stmt/options.json @@ -1,3 +1,3 @@ { "throws": "Invalid left-hand side in for-in statement (2:7)" -} \ No newline at end of file +} diff --git a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/await/options.json b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/await/options.json index 30284fbe70..1f14d22a2c 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/await/options.json +++ b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/await/options.json @@ -1,6 +1,4 @@ { "throws": "await is not supported inside pipeline expressions yet", - "plugins": [ - ["proposal-pipeline-operator", { "proposal": "smart" }] - ] + "plugins": [["proposal-pipeline-operator", { "proposal": "smart" }]] } diff --git a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/options.json b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/options.json index 12164b3acf..ffe4feed49 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/options.json +++ b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/options.json @@ -1,5 +1,3 @@ { - "plugins": [ - ["proposal-pipeline-operator", { "proposal": "smart" }] - ] + "plugins": [["proposal-pipeline-operator", { "proposal": "smart" }]] } diff --git a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/yield/options.json b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/yield/options.json index 2cc7af6c04..78feddd16e 100644 --- a/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/yield/options.json +++ b/packages/babel-plugin-proposal-pipeline-operator/test/fixtures/smart/yield/options.json @@ -1,6 +1,4 @@ { "throws": "yield is not supported inside pipeline expressions yet", - "plugins": [ - ["proposal-pipeline-operator", { "proposal": "smart" }] - ] + "plugins": [["proposal-pipeline-operator", { "proposal": "smart" }]] } diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-no/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-no/options.json index 3a7f4c0405..2c7aa7bce2 100644 --- a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-no/options.json +++ b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-no/options.json @@ -1,4 +1,3 @@ { - "plugins": [["transform-typescript", { "isTSX": true }]] + "plugins": [["transform-typescript", { "isTSX": true }]] } - \ No newline at end of file diff --git a/packages/babel-preset-env/scripts/build-data.js b/packages/babel-preset-env/scripts/build-data.js index 3706d8148a..eb83caa1a0 100644 --- a/packages/babel-preset-env/scripts/build-data.js +++ b/packages/babel-preset-env/scripts/build-data.js @@ -54,15 +54,15 @@ const byTestSuite = suite => browser => { : true; }; -const compatSources = ["es5", "es6", "es2016plus", "esnext"].reduce( - (result, source) => { - const data = require(`compat-table/data-${source}`); - data.browsers = pickBy(envs, byTestSuite(source)); - result.push(data); - return result; - }, - [] -); +const compatSources = ["es5", "es6", "es2016plus", "esnext"].reduce(( + result, + source +) => { + const data = require(`compat-table/data-${source}`); + data.browsers = pickBy(envs, byTestSuite(source)); + result.push(data); + return result; +}, []); const interpolateAllResults = (rawBrowsers, tests) => { const interpolateResults = res => { diff --git a/scripts/generators/readmes.js b/scripts/generators/readmes.js index fd0cc7f3c4..add3d045c1 100644 --- a/scripts/generators/readmes.js +++ b/scripts/generators/readmes.js @@ -20,8 +20,12 @@ const getIssueLabelLink = l => `https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22${encodeURIComponent( l )}%22+is%3Aopen`; -const getNpmInstall = name => `npm install ${packagesInstalledToDep.includes(name) ? "--save" : "--save-dev"} ${name}`; -const getYarnAdd = name => `yarn add ${name} ${packagesInstalledToDep.includes(name) ? "" : "--dev"}`; +const getNpmInstall = name => + `npm install ${ + packagesInstalledToDep.includes(name) ? "--save" : "--save-dev" + } ${name}`; +const getYarnAdd = name => + `yarn add ${name} ${packagesInstalledToDep.includes(name) ? "" : "--dev"}`; const labels = { "babel-preset-flow": getIssueLabelLink("area: flow"),