Open TiroZit opened 1 year ago
This is a duplicate of #55, but looks like neither has had a response from the repo owner. 😕
Added here as well -- #82 should close this issue :) We just gotta get the repo owner to either merge some of these PRs in, or give some other people write access to the project @gxmari007 I understand things get busy, i've been there too! Let the community help support the wonderful tool that you helped create <3 I volunteer to merge PRs in, and if I become too busy as well I would hand over the reigns to someone else.
This newer plugin works with flat files. Doesn't seem like #82 is going to be merged anytime soon. @nabla/vite-plugin-eslint
Describe the bug
ESLint introduced a new configuration format eslint.config.js (flat config). With the new format, an error is thrown when starting the application:
Running ESLint directly via CLI works with the new config. The checker plugin worked properly before migrating to the new ESLint config.
Expected behavior
ESLint should run without an error and the
eslint.config.js
file should be used.The ESLint class used by this plugin doesn't support the new flat config. For the flat config the FlatESLint class must be used which is only exported via eslint/use-at-your-own-risk entrypoint: https://eslint.org/blog/2022/08/new-config-system-part-3/#using-flat-config-with-the-eslint-class