diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-14 22:26:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 03:26:29 +0000 |
commit | 6bf7b0055765c4f2011c9614753d6714dc09be65 (patch) | |
tree | 0e782ae66556eaa61a34d9f32d77c831b2443ce5 /test/playwright | |
parent | 7a4096240ce4faf70a785d047945388baa0daab3 (diff) |
Eslint rule updates (#673)
* Install unicorn
* Add rules
* Fix issues
* Install sonarjs
* Set up rules
* Fix issues
* Install eslint-plugin-import and fix import extensions
* Simplify permitted error names
Diffstat (limited to 'test/playwright')
-rw-r--r-- | test/playwright/global.setup.js | 4 | ||||
-rw-r--r-- | test/playwright/global.teardown.js | 2 | ||||
-rw-r--r-- | test/playwright/integration.spec.js | 4 | ||||
-rw-r--r-- | test/playwright/visual.spec.js | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/test/playwright/global.setup.js b/test/playwright/global.setup.js index 8c2f8b50..63452397 100644 --- a/test/playwright/global.setup.js +++ b/test/playwright/global.setup.js @@ -18,8 +18,8 @@ import {test as setup} from '@playwright/test'; import fs from 'fs'; import path from 'path'; -import {ManifestUtil} from '../../dev/manifest-util'; -import {root} from './playwright-util'; +import {ManifestUtil} from '../../dev/manifest-util.js'; +import {root} from './playwright-util.js'; const manifestPath = path.join(root, 'ext/manifest.json'); const copyManifestPath = path.join(root, 'ext/manifest-old.json'); diff --git a/test/playwright/global.teardown.js b/test/playwright/global.teardown.js index f3d8897f..e747e5fd 100644 --- a/test/playwright/global.teardown.js +++ b/test/playwright/global.teardown.js @@ -18,7 +18,7 @@ import {test as teardown} from '@playwright/test'; import fs from 'fs'; import path from 'path'; -import {root} from './playwright-util'; +import {root} from './playwright-util.js'; const manifestPath = path.join(root, 'ext/manifest.json'); const copyManifestPath = path.join(root, 'ext/manifest-old.json'); diff --git a/test/playwright/integration.spec.js b/test/playwright/integration.spec.js index bdcfddf0..170714a1 100644 --- a/test/playwright/integration.spec.js +++ b/test/playwright/integration.spec.js @@ -16,7 +16,7 @@ */ import path from 'path'; -import {createDictionaryArchive} from '../../dev/util'; +import {createDictionaryArchive} from '../../dev/util.js'; import { expect, expectedAddNoteBody, @@ -26,7 +26,7 @@ import { root, test, writeToClipboardFromPage -} from './playwright-util'; +} from './playwright-util.js'; test.beforeEach(async ({context}) => { // Wait for the on-install welcome.html tab to load, which becomes the foreground tab diff --git a/test/playwright/visual.spec.js b/test/playwright/visual.spec.js index cc2a50d0..fc8bb8df 100644 --- a/test/playwright/visual.spec.js +++ b/test/playwright/visual.spec.js @@ -17,7 +17,7 @@ import path from 'path'; import {pathToFileURL} from 'url'; -import {expect, root, test} from './playwright-util'; +import {expect, root, test} from './playwright-util.js'; test.beforeEach(async ({context}) => { // Wait for the on-install welcome.html tab to load, which becomes the foreground tab |