amilajack / amilajack/eslint-plugin-compat
disable merging of eslintrc browserslist config
- 主要语言
- TypeScript
- 星标
- 3.2k
- 派生
- 115
- PR 合并指标
- 30 天内没有已合并 PR
描述
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:
1) add an additional description in the wiki that mentions the merging of the configs
2) add an additional option to override the config and add an example in the wiki
What do yout think?
贡献指南
评估
这个 Issue 还没有评估数据。