anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.23k stars 50 forks source link

.browserslistrc Not Acknowledged by doiuse. #152

Open JBreit opened 1 year ago

JBreit commented 1 year ago

I have a .browserslistrc file with targeted browsers based on legacy and modern browsers. The entire file isn't being found by the npm module. Anyone have an idea as to what the issue is?

.browserlistrc file content:

[legacy]
last 2 versions
firefox esr
not dead
> 1%

[modern]
last 1 chrome version
not chrome < 60
last 1 firefox version
not firefox < 54
last 1 safari version
not safari < 10.1
> 0.2%
clshortfuse commented 1 year ago

I would need more info.

We have a test for browserslist here: https://github.com/anandthakker/doiuse/blob/24918a74ef8adbd997b2977c0ea5cd936100424a/test/postcss-plugin.js#L126-L139

And at most, all we do is import browserslist from 'browserslist'; and let the package handle the rest.