Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for "Flat Config" #41

Closed
nagisaando opened this issue Mar 27, 2024 · 4 comments
Closed

Support for "Flat Config" #41

nagisaando opened this issue Mar 27, 2024 · 4 comments

Comments

@nagisaando
Copy link

Hello!

Does this plugin support Flat config? (eslint.config.js). Since the other config files will be deprecated after ESLint v9.0.0, it would be great if we could use it with the new config. (Sorry if it is already available. I might have missed)

Currently, if I import the plugin to the new config file, it shows error as

import eslintCheckFile from 'eslint-plugin-check-file';
       ^^^^^^^^^^^^^^^
SyntaxError: The requested module 'eslint-plugin-check-file' does not provide an export named 'default'
// eslint.config.js
import eslintCheckFile from 'eslint-plugin-check-file';
export default [
	...eslintCheckFile,
];
@dukeluo
Copy link
Owner

dukeluo commented Mar 30, 2024

Currently, this plugin does not support the new "Flat Config" feature. However, I am considering adding support for it in future versions. I need some time to understand how to implement this new feature. In the meantime, any contributions via a PR to add this functionality would be greatly appreciated.

@nagisaando
Copy link
Author

Thanks for the clarification. Yes I will take a look

dukeluo added a commit that referenced this issue Apr 14, 2024
@dukeluo
Copy link
Owner

dukeluo commented Apr 14, 2024

@nagisaando I have released v2.8.0 to support flat config for eslint v9.0.0.

@nagisaando
Copy link
Author

Hello @dukeluo . Thank you so much for taking time to implement it. I just tried it out, and it is working great. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants