IanVS / eslint-nibble

Ease into ESLint, by fixing one rule at a time
MIT License
787 stars 29 forks source link

Not working with overrides and files #119

Open blewandowski-appfire opened 3 months ago

blewandowski-appfire commented 3 months ago

I have a more complex eslint where some files are parsed by @typescript-eslint/parser (TS) while others are using @babel/eslint-parser (JS).

There is a default option in this package which sets the extensions to .js. This can be overwritten by -ext, but it doesn't then respect the override for other files.

I was able to test a fix in node_modules directly byby removing the -ext completely from the parser options.

Can we add an option so that -ext is not needed?

Running it with the configuration not containing the file types works fine for me.

IanVS commented 3 months ago

I need to merge and release https://github.com/IanVS/eslint-nibble/pull/117 which I think will help. Maybe you can try out that branch and see if it meets your needs?