Skip to content

disable merging of eslintrc browserslist config #411

@ghost

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:

  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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions