-
-
Notifications
You must be signed in to change notification settings - Fork 113
Open

Description
In the wiki there an example of an inline eslint config:
https://github.com/amilajack/eslint-plugin-compat/wiki/Advanced-Browserslist-Configs#inline-eslint-config
I thought this would override a browserslist config defined in package.json file, but that wasn't working, so i took a look in the code and saw the configs are merged:
https://github.com/amilajack/eslint-plugin-compat/blob/master/src/helpers.ts#L191
I have a usecase where i want to use a different browserslist config for eslint-compat-plugin, and the global one for everything else:
"compat/compat": ["error", "supports es6-module"],
I would propose following changes:
- add an additional description in the wiki that mentions the merging of the configs
- add an additional option to override the config and add an example in the wiki
What do yout think?
Metadata
Metadata
Assignees
Labels
No labels