summaryrefslogtreecommitdiffstats
path: root/eslint.config.mjs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests(e2e): Refactor various testsOtto Richter2024-11-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Goals: - speedup - less flakiness - best practices and more use - documentation config: - sync ports in Makefile and playwright config (otherwise, some tests fail locally because they assert the full URL including the (wrong) port) - even more generous timeouts - limit workers to one again (because I finally understand how Playwright works) - allow nested functions to group them together with the related test all: - deprecate waitForLoadState('networkidle') - it is discouraged as per https://playwright.dev/docs/api/class-page#page-wait-for-load-state - I could not find a usage that seems to require it actually (see added documentation in README) - adding an exception should be made explicitly - it does not do what you might expect anyway in most cases - only log in when necessary webauthn: - verify that login is possible after disabling key - otherwise, the cleanup was not necessary after the previous refactor to create a fresh user each issue-sidebar / WIP toggle: - split into smaller chunks - restore original state first - add missed assertion to fix race condition (not waiting before state was reached) - explicitly toggle the state to detect mismatch earlier issue-sidebar / labels: - restore original state first - better waiting for background request
* chore(lint): Ignore playwright reports for lintingOtto Richter2024-11-121-2/+2
| | | | | Was part of c9e402afdc573a9706fa45a1052c122f34264b89 but got dropped from Makefile in 8dc72589cafd0881e234af489c4b3d643422f7e9 There are no JavaScript files in e2e left, so apply some rule to TypeScript only
* Add typescriptAnbraten2024-10-291-1121/+1129
|
* chore: add extra playwright rulesGusted2024-10-231-0/+2
|
* chore: move to Eslint flat configGusted2024-10-231-0/+1159
Make the big move to Eslint flat config format. The outcome of Eslint still should be the same, but some things has changed: - `eslint-plugin-github` is dropped, flat configs have been out for a while and most eslint plugins support it, but for no reason and no activity in sight this plugin is likely not going to support flat config for a while and to avoid other plugins not being able to update (as they are requiring flat configs) drop the github rules. - Nested configs don't work properly and are unified into the root eslint config, this unification did cause some conflicts and thats why the `import-x` is in a seperate 'group' to exclude targeting Vue files. - The `eslint-plugin-i` is deprecated and `esplint-plugin-import-x` is its succesor which has better support for flat configs, the same rules are still applied. The majority of the flat config was generated by `@eslint/migrate-config` tool.