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

Use ESLint "overrides" to configure based on availability of packages #175

Open
karlhorky opened this issue Dec 7, 2022 · 0 comments
Open

Comments

@karlhorky
Copy link
Member

The 1stG ESLint configs use overrides to enable different things in the config based on whether certain packages are available:

https://github.com/karlhorky/configs/blob/master/packages/eslint-config/overrides.js#L536

This would allow us to enable certain parts of the configure only if they are relevant eg:

  1. React rules only if react package is available
  2. Next.js rules only if next package is available
  3. SafeQL only if the package is available
@karlhorky karlhorky changed the title Use overrides to configure based on availability of packages Use ESLint "overrides" to configure based on availability of packages Apr 3, 2023
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