Extending overrides in sharable configs #12685
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
triage
An ESLint team member will look at this issue soon
The version of ESLint you are using.
6.7.x
The problem you want to solve.
We have a shareable config that we use for Create React App (
eslint-config-react-app
).When we added TypeScript support, we added an
overrides
object for Typescript, which sets the rules for related files. JS files are still handled by the root/base config.This works fine until users try to extend these rules, they need to reimplement the TypeScript overrides object. This is causing issues for some of our users (facebook/create-react-app#7776).
Your take on the correct solution to problem.
We've given it some thought. One option is for us to ship a separate config for TypeScript, and simply extend that in our overrides. That would be fairly simple for users to reimplement.
However, we wondered if the ESLint team had better ideas. Perhaps a way to merge/extend overrides?
Are you willing to submit a pull request to implement this change?
Of course.
The text was updated successfully, but these errors were encountered: