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 multiple configurations in .escheckrc #230

Open
cascornelissen opened this issue Jan 7, 2025 · 0 comments
Open

Add support for multiple configurations in .escheckrc #230

cascornelissen opened this issue Jan 7, 2025 · 0 comments

Comments

@cascornelissen
Copy link

Requested Update

Support arrays in .escheckrc so that different files can be checked with different options. Command-line options should probably overwrite the option for all configurations. Something like this:

[{
    "ecmaVersion": "es6",
    "module": false,
    "files": "{cjs,umd}/index.{cjs,js}"
}, {
    "ecmaVersion": "es2020",
    "module": true,
    "files": "esm/index.mjs"
}]

Why Is This Update Needed?

We have some projects that compile multiple bundles (e.g. UMD, CJS, and ESM) and they require different es-check flags/options. As an example, this is the command we currently use:

es-check es6 cjs/index.cjs umd/index.js && es-check es2020 esm/index.mjs --module

We were hoping to switch to using the separate .escheckrc file but I don't think it's possible to have multiple configurations in there at this point in time?

Are There Examples Of This Requested Update Elsewhere?

Not that we could find 🤷🏼‍♂️

@cascornelissen cascornelissen changed the title Add support for arrays in .escheckrc Add support for multiple configurations in .escheckrc Jan 7, 2025
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