Skip to content

Commit cea1942

Browse files
Adopt @microbit/eslint-config (#10)
Replaces the legacy .eslintrc.cjs and per-project plugin set with the shared flat config, moving to ESLint 9. As in makecode-embed, eslint-plugin-storybook stays a project dependency since its version tracks Storybook's release cycle. Fixes for the type-aware rules the shared config enables: - Type the frame driver listener's event.data, previously any, via a narrow local type the existing per-message casts build on. - Mark the intentionally unawaited handleWorkspaceSync call with void and drop async from initialProjects callbacks with no await. The lockfile is regenerated as npm could not resolve the ESLint major bump in place.
1 parent 0ec4aff commit cea1942

7 files changed

Lines changed: 2514 additions & 1016 deletions

File tree

.eslintrc.cjs

Lines changed: 0 additions & 20 deletions
This file was deleted.

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import microbit from '@microbit/eslint-config/react';
2+
import storybook from 'eslint-plugin-storybook';
3+
4+
export default [...microbit, ...storybook.configs['flat/recommended']];

0 commit comments

Comments
 (0)