Solid.js (eslint-plugin-solid) built-in plugin #19936
Replies: 3 comments 1 reply
-
|
Note that oxlint aims to support existing js plugins, eslint-plugin-solid seems to work Example config is something like this:
|
Beta Was this translation helpful? Give feedback.
-
|
kanashimia is correct here - the JS plugin should work, and that is the suggested way to use the solid plugin. Please see https://oxc.rs/docs/guide/usage/linter/plugins.html#adding-new-plugins for notes on implementing this as a native plugin. |
Beta Was this translation helpful? Give feedback.
-
|
Hey! I just ran into this issue as well. I didn't want to have to add all the rules into the // oxlint.config.ts
import { defineConfig } from "oxlint"
import solid from "eslint-plugin-solid/configs/typescript"
export default defineConfig({
jsPlugins: ["eslint-plugin-solid"],
rules: {
...solid.rules, // stays in sync with eslint-plugin-solid on upgrade
},
})Seems to work on the cli and in Zed with the oxc extension installed. Cheers! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is still the requested pattern (following https://oxc.rs/docs/guide/usage/linter/plugins.html#adding-new-plugins), but thoughts on including Solid.js built-in support, for parity with React? I haven't looked too much in detail at the React implementation specifics it would just be great to ensure that JSX support is agnostic moving forward, and continues to work well with non-React JSX like Solid.js.
Apologies if this is the wrong place/structure, thanks y'all for some really great work here!
Beta Was this translation helpful? Give feedback.
All reactions