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

Add support for new ESLint eslint.config.js files #220

Open
SirSKillz opened this issue Aug 7, 2024 · 0 comments
Open

Add support for new ESLint eslint.config.js files #220

SirSKillz opened this issue Aug 7, 2024 · 0 comments

Comments

@SirSKillz
Copy link

Current Behavior

As seen here, only .eslintrc.js files are supported for merging. With ESLint 9.0, eslint.config.js has become the default, so it should be supported in DTS.

Desired Behavior

Allow a user to at least use eslint.config.js, or ideally any of the eslint config file options.

Suggested Solution

Inside of createEslintConfig.ts
Define a list of supported ESLint config files.
Check if any of these files exist in the project root.
If a file exists, use it; otherwise, default to eslint.config.js (or eslintrc.js for older versions of ESLint)
Update the config file path and write the configuration.

This likely also requires some checks for the version of ESLint in use if specific files versions are allowed

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

1 participant