Open
Description
Do you know if it's possible to use this plugin with ESLint 9? I see in the dependencies that the official eslint version is 8, and there's an official "migration guide" to eslint 9.x so I'm fearing it this plugin might need some migration steps to make it work.
I've tried changing the setup to this:
import svgPlugin from "svg-jsx";
export default tseslint.config(
// ...
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
"svg-jsx": svgPlugin,
},
rules: {
// ...
"svg-jsx/camel-case-dash": "error",
"svg-jsx/camel-case-colon": "error",
"svg-jsx/no-style-string": "error",
},
},
But unfortunately that was not enough and when trying to run it I get this error:
$ npm run lint
> eslint . --max-warnings=0
Usage: {REDACTED}/node_modules/.bin/eslint <input file>
<ouput file>
Options:
-h, --help Show help [boolean]
Not enough non-option arguments: got 1, need at least 2
Which I assume it has something to do with the eslint-plugin-svg not being compatible with ESLint 9, since if I remove the SVG-specific bits it works as usual.
Metadata
Metadata
Assignees
Labels
No labels