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

Override just part of rule #86

Closed
fabulousgk opened this issue Apr 30, 2024 · 2 comments
Closed

Override just part of rule #86

fabulousgk opened this issue Apr 30, 2024 · 2 comments

Comments

@fabulousgk
Copy link

Specifically, I am trying to modify the @typescript-eslint/naming-convention rule. I want to keep almost all of the rule as defined in xo, I only need to change one selector. But, as soon as I put one selector in, all rules are overridden.

Is there any way to keep most the rules and just add to them without copying the entire thing from xo config?

@sindresorhus
Copy link
Member

This would be a question for ESLint as it's not specific to this config.

But to answer your question, I think the new ESLint flat config will allow this as you could just modify the config object from this package before adding it to your config.

@fabulousgk
Copy link
Author

Ok, thank you

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