You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that in #339 a comment was added stating “Eslint target config will be deprecated in 4.0.0”.
I think this is a useful feature as it allows different browser targets on a per folder basis. For example you may have a folder for a mobile site that has different requirements to your desktop site.
It also allows browser lists to be bundled with shared config.
I have the same use case for this functionality. Our monorepo contains all sorts of apps including web apps and node services. I haven't found a way to disable checking for browser compatibility of our code in the node services. For now I'm disabling compat/compat altogether in the node services, which is not ideal.
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:
I would propose following changes:
What do yout think?
The text was updated successfully, but these errors were encountered: