A Biome GritQL plugin providing lint rules for @solidjs/router, catching common API mistakes from React Router muscle memory at lint time. Current stable version is 0.2.0, released with OIDC trusted publishing. The plugin's five rules (solid-router-no-link-component, solid-router-no-to-prop, solid-router-no-initial-entries, solid-router-no-routes-wrapper, solid-router-no-element-prop) identify wrong imports, props, and usage patterns. Requires Biome >= 2.0.0 and works via GritQL AST matching. Unlike TypeScript- or ESLint-based solutions, it catches mistakes without type information, but for full type-aware linting should be combined with eslint-plugin-solid.
npm install biome-plugin-solid-routerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and enable biome-plugin-solid-router in biome.json, registering all five lint rules for @solidjs/router.
Upgrade Biome to 2.0.0 or later (npm update @biomejs/biome).
No fix needed — intended behavior. But be aware that false negatives can occur if router components are re-exported under a different name.
Add eslint-plugin-solid to your linting setup for full type-aware linting.
Use { "plugins": ["biome-plugin-solid-router"] } in biome.json.Update @biomejs/biome to >= 2.0.0 (npm install -D @biomejs/biome@latest).
Verify the file exists in node_modules/biome-plugin-solid-router/rules/ and the path is correct. Use the package name instead: "biome-plugin-solid-router".