diff options
author | James Maa <jmaa@berkeley.edu> | 2024-05-31 08:06:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 15:06:52 +0000 |
commit | 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch) | |
tree | bdba43d9ba704885383c7f308c6fe3f574c647c5 /test/eslint-config.test.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'test/eslint-config.test.js')
-rw-r--r-- | test/eslint-config.test.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/eslint-config.test.js b/test/eslint-config.test.js index 6ea6715a..3b93fa98 100644 --- a/test/eslint-config.test.js +++ b/test/eslint-config.test.js @@ -37,7 +37,7 @@ async function getDependencies(scriptPaths) { target: 'es2022', format: 'esm', write: false, - metafile: true + metafile: true, }); const dependencies = Object.keys(v.metafile.inputs); const stringComparer = new Intl.Collator('en-US'); // Invariant locale @@ -90,35 +90,35 @@ const targets = [ { name: 'sandbox', paths: [ - 'ext/js/templates/template-renderer-frame-main.js' + 'ext/js/templates/template-renderer-frame-main.js', ], /** @type {import('test/eslint-config').MinimalEslintConfigEnv} */ env: { - webextensions: false - } + webextensions: false, + }, }, { name: 'worker', paths: [ - 'ext/js/dictionary/dictionary-worker-main.js' + 'ext/js/dictionary/dictionary-worker-main.js', ], /** @type {import('test/eslint-config').MinimalEslintConfigEnv} */ env: { browser: false, - worker: true - } + worker: true, + }, }, { name: 'serviceworker', paths: [ - 'ext/js/background/background-main.js' + 'ext/js/background/background-main.js', ], /** @type {import('test/eslint-config').MinimalEslintConfigEnv} */ env: { browser: false, - serviceworker: true - } - } + serviceworker: true, + }, + }, ]; describe('Eslint configuration', () => { |