Skip to content

chore: update ESLint and plugins, simplify config, apply new rules#4052

Merged
sdetweil merged 4 commits intoMagicMirrorOrg:developfrom
KristjanESPERANTO:eslint
Mar 7, 2026
Merged

chore: update ESLint and plugins, simplify config, apply new rules#4052
sdetweil merged 4 commits intoMagicMirrorOrg:developfrom
KristjanESPERANTO:eslint

Conversation

@KristjanESPERANTO
Copy link
Collaborator

This PR updates ESLint and the ESLint plugins to their latest versions and takes advantage of the new versions to simplify the config.

The main cleanup: removed all explicit plugins: {} registrations from eslint.config.mjs. When passing direct config objects like js.configs.recommended, the plugin registration is already included – we were just doing it twice.

Two lint warnings are also fixed:

Built-in Node.js imports were manually updated to use the node: prefix (e.g. require("fs")require("node:fs")). Minor formatting fixes were applied automatically by eslint --fix.

- Remove explicit `plugins: {}` registrations; direct config objects
  (e.g. `js.configs.recommended`) already register their plugin internally
- Use named import for eslint-plugin-package-json to resolve
  `import-x/no-named-as-default-member` warning
- Disable `playwright/no-duplicate-hooks` for e2e tests: plain
  `beforeAll()`/`afterAll()` calls (Vitest style) trigger false positives
  because the rule only handles `test.beforeAll()` member-expression style
@sdetweil sdetweil merged commit cb61aeb into MagicMirrorOrg:develop Mar 7, 2026
9 checks passed
@KristjanESPERANTO KristjanESPERANTO deleted the eslint branch March 7, 2026 18:07
@rejas
Copy link
Collaborator

rejas commented Mar 7, 2026

So, how much AI did you use on this and the bug report?

@KristjanESPERANTO
Copy link
Collaborator Author

KristjanESPERANTO commented Mar 7, 2026

So, how much AI did you use on this and the bug report?

None for the PR - just Deepl translate for some wording.

For the bug report I used AI, I described in German the problem I saw and had the text formulated. On the result I did some fine-tuning and code snippets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants