From 17167da7e9046493f5292079a58bb3ea2213f857 Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Tue, 14 Sep 2021 15:37:22 -0700 Subject: [PATCH] misc: lint rule trailing commas for import/export --- .eslintrc.js | 4 ++-- lighthouse-cli/test/fixtures/static-server.js | 2 +- lighthouse-cli/test/smokehouse/frontends/back-compat-util.js | 2 +- lighthouse-cli/test/smokehouse/lighthouse-runners/bundle.js | 2 +- lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js | 2 +- lighthouse-cli/test/smokehouse/smokehouse.js | 2 +- .../test-definitions/byte-efficiency/expectations.js | 2 +- .../test/smokehouse/test-definitions/csp/csp-expectations.js | 2 +- .../smokehouse/test-definitions/errors/error-expectations.js | 2 +- .../test-definitions/lantern/lantern-expectations.js | 2 +- .../test-definitions/offline-local/offline-expectations.js | 2 +- .../test-definitions/perf-diagnostics/expectations.js | 2 +- .../test/smokehouse/test-definitions/perf/expectations.js | 2 +- .../test/smokehouse/test-definitions/pwa/pwa-expectations.js | 2 +- .../test/smokehouse/test-definitions/pwa/pwa2-expectations.js | 2 +- .../test/smokehouse/test-definitions/pwa/pwa3-expectations.js | 2 +- .../smokehouse/test-definitions/redirects/expectations.js | 2 +- .../test/smokehouse/test-definitions/seo/expectations.js | 2 +- .../test-definitions/tricky-metrics/expectations.js | 2 +- 19 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 515a30a62b75..336344813542 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -65,8 +65,8 @@ module.exports = { 'comma-dangle': [2, { arrays: 'always-multiline', objects: 'always-multiline', - imports: 'never', - exports: 'never', + imports: 'always-multiline', + exports: 'always-multiline', functions: 'never', }], diff --git a/lighthouse-cli/test/fixtures/static-server.js b/lighthouse-cli/test/fixtures/static-server.js index cfef8861890c..11fc8e7eb34d 100644 --- a/lighthouse-cli/test/fixtures/static-server.js +++ b/lighthouse-cli/test/fixtures/static-server.js @@ -260,5 +260,5 @@ if (esMain(import.meta)) { export { Server, serverForOnline as server, - serverForOffline + serverForOffline, }; diff --git a/lighthouse-cli/test/smokehouse/frontends/back-compat-util.js b/lighthouse-cli/test/smokehouse/frontends/back-compat-util.js index 62110adbf267..c5b5bc2bf1a6 100644 --- a/lighthouse-cli/test/smokehouse/frontends/back-compat-util.js +++ b/lighthouse-cli/test/smokehouse/frontends/back-compat-util.js @@ -38,5 +38,5 @@ function updateTestDefnFormat(allTestDefns) { } export { - updateTestDefnFormat + updateTestDefnFormat, }; diff --git a/lighthouse-cli/test/smokehouse/lighthouse-runners/bundle.js b/lighthouse-cli/test/smokehouse/lighthouse-runners/bundle.js index 89fefa89c8cf..41d0689b1458 100644 --- a/lighthouse-cli/test/smokehouse/lighthouse-runners/bundle.js +++ b/lighthouse-cli/test/smokehouse/lighthouse-runners/bundle.js @@ -62,5 +62,5 @@ async function runLighthouse(url, configJson, testRunnerOptions = {}) { } export { - runLighthouse + runLighthouse, }; diff --git a/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js b/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js index 4619e8aac5b8..d68e95b1d326 100644 --- a/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js +++ b/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js @@ -146,5 +146,5 @@ async function internalRun(url, tmpPath, configJson, options) { } export { - runLighthouse + runLighthouse, }; diff --git a/lighthouse-cli/test/smokehouse/smokehouse.js b/lighthouse-cli/test/smokehouse/smokehouse.js index 8f63bdb2850c..cef142c01cf0 100644 --- a/lighthouse-cli/test/smokehouse/smokehouse.js +++ b/lighthouse-cli/test/smokehouse/smokehouse.js @@ -228,5 +228,5 @@ function getAssertionLog(count) { } export { - runSmokehouse + runSmokehouse, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/byte-efficiency/expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/byte-efficiency/expectations.js index 77ff7083f348..7913f63119c2 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/byte-efficiency/expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/byte-efficiency/expectations.js @@ -324,5 +324,5 @@ const gzip = { export { efficiency, - gzip + gzip, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/csp/csp-expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/csp/csp-expectations.js index 5a402298f7bb..da085faa2acf 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/csp/csp-expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/csp/csp-expectations.js @@ -114,5 +114,5 @@ const blockAll = { export { allowAll, blockAllM91, - blockAll + blockAll, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/errors/error-expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/errors/error-expectations.js index af140cd26b32..20163fda66d8 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/errors/error-expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/errors/error-expectations.js @@ -105,5 +105,5 @@ const iframeBadSsl = { export { infiniteLoop, expiredSsl, - iframeBadSsl + iframeBadSsl, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/lantern/lantern-expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/lantern/lantern-expectations.js index 018726222a56..bcc0db1b2fec 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/lantern/lantern-expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/lantern/lantern-expectations.js @@ -151,5 +151,5 @@ export { fetch, xhr, idleCallbackShort, - idleCallbackLong + idleCallbackLong, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/offline-local/offline-expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/offline-local/offline-expectations.js index 8fff662d3749..730bd6795024 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/offline-local/offline-expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/offline-local/offline-expectations.js @@ -236,5 +236,5 @@ export { onlineOnly, ready, swBroken, - swSlow + swSlow, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/perf-diagnostics/expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/perf-diagnostics/expectations.js index 43d9b3d7f000..290884816fa9 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/perf-diagnostics/expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/perf-diagnostics/expectations.js @@ -141,5 +141,5 @@ const unsizedImages = { export { animations, thirdParty, - unsizedImages + unsizedImages, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/perf/expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/perf/expectations.js index 75537c6332a0..abb57681c68b 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/perf/expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/perf/expectations.js @@ -389,5 +389,5 @@ export { fonts, debug, traceElements, - frameMetrics + frameMetrics, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa-expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa-expectations.js index 81bc18ecb823..b35951fb4738 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa-expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa-expectations.js @@ -117,5 +117,5 @@ const chromestatus = { export { airhorner, - chromestatus + chromestatus, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa2-expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa2-expectations.js index 0c4f6431ee4d..16293a54e6e7 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa2-expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa2-expectations.js @@ -123,5 +123,5 @@ const caltrain = { export { svgomg, - caltrain + caltrain, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa3-expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa3-expectations.js index a48e44d5abd3..9fa9db980a13 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa3-expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/pwa/pwa3-expectations.js @@ -68,5 +68,5 @@ const pwarocks = { }; export { - pwarocks + pwarocks, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/redirects/expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/redirects/expectations.js index 91cd6f71830b..527a06ac4c56 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/redirects/expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/redirects/expectations.js @@ -151,5 +151,5 @@ export { multipleServer, clientPaintServer, singleClient, - historyPushState + historyPushState, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/seo/expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/seo/expectations.js index fc434b1a203f..c515d5637e55 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/seo/expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/seo/expectations.js @@ -483,5 +483,5 @@ export { passing, failing, status403, - tapTargets + tapTargets, }; diff --git a/lighthouse-cli/test/smokehouse/test-definitions/tricky-metrics/expectations.js b/lighthouse-cli/test/smokehouse/test-definitions/tricky-metrics/expectations.js index 0ce547057c8b..ab772b95c308 100644 --- a/lighthouse-cli/test/smokehouse/test-definitions/tricky-metrics/expectations.js +++ b/lighthouse-cli/test/smokehouse/test-definitions/tricky-metrics/expectations.js @@ -97,5 +97,5 @@ export { trickyTtiLateFcp, delayedLcp, delayedFcp, - debuggerStatement + debuggerStatement, };