Open jeron-diovis opened 4 months ago
if you use FLAT CONFIG, specify to checker
plugins: [
checker({
eslint: {
useFlatConfig: true, // for me this fix the problem
lintCommand: "eslint 'src/scripts/**/*.ts'",
},
}),
],
useFlatConfig
is not working for me. Still getting same error
checker({
typescript: true,
eslint: {
useFlatConfig: true,
lintCommand: 'eslint "./src/**/*.{ts,tsx}"',
},
overlay: {
initialIsOpen: false,
},
}),
dependencies
"vite-plugin-checker": "^0.6.4",
"eslint": "^9.3.0",
Same issue.
Try now using "vite-plugin-checker": "0.7.0"
@vishal-kadmos
Any updates?
It doesn't work with the ESLint 9.9.0 eslint.config.ts
.
Using dev: { overrideConfig: { flags: ['unstable_ts_config'] } },
it simply ignores the flag.
Using lintCommand: 'eslint --flag unstable_ts_config'
it says "unknown --flag
, do I mean --fix
?"
Edit: Looking into the code the typing says there is a flags
, but in the code it is not used for eslint
.
Only for the others like biome
.
eslint = new FlatESLint({
cwd: root,
})
it should be as example for a hardcoded flag
eslint = new FlatESLint({
cwd: root,
flags: ['unstable_ts_config']
});
sooo there is the interpreting of the flags
option completely missing.
And for the buildmode it needs fixes here https://github.com/fi3ework/vite-plugin-checker/blob/b2c32367cf2e410154194d7730d8830aace898d9/packages/vite-plugin-checker/src/checkers/eslint/main.ts#L171-L179
Because the mentioned eslint.dev.eslint
in the docs doesn't seem to exist for eslint
.
Only for biome
.
Describe the bug
Build crashes when running with eslint@9 installed:
Reproduction
Expected behavior
Build should not crash when eslint@9 is installed.
System Info
Additional context
No response
Validations