Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

browserslist config is ignoring #387

Open
AlexWayfer opened this issue Jan 25, 2018 · 1 comment
Open

browserslist config is ignoring #387

AlexWayfer opened this issue Jan 25, 2018 · 1 comment

Comments

@AlexWayfer
Copy link

Hello!

I have browserslist file:

> 50%
not OperaMini all
not OperaMobile >= 0
not BlackBerry >= 0
not Android >= 0

And CSS file:

.foo {
  flex-basis: calc(100% - 3px);
  flex-grow: 1;
  flex-shrink: 0;
}

CLI command as refferer:

$ yarn run stylelint assets/styles/lib/test.css
yarn run v1.3.2
$ /home/alex/Projects/gettransport/node_modules/.bin/stylelint assets/styles/lib/test.css
Done in 0.93s.

After browserslist file changing to:

> 1%

There is CLI output:

$ yarn run stylelint assets/styles/lib/test.css
yarn run v1.3.2
$ /home/alex/Projects/gettransport/node_modules/.bin/stylelint assets/styles/lib/test.css

assets/styles/lib/test.css
 2:2  ⚠  Unexpected browser feature "calc" is not supported by Opera Mini all   plugin/no-unsupported-browser-features

Done in 0.95s.

But in Atom UI all time:

Unexpected browser feature "calc" is not supported by Opera Mini all, Blackberry Browser 7, Opera Mobile 12.1 and only partially supported by Android Browser 4.4.3-4.4.4 (plugin/no-unsupported-browser-features)

I've exluded these browsers, it works correctly via CLI, but not with linter-stylelint plugin. 😕

@AlexWayfer AlexWayfer changed the title browserslist config is ingoring browserslist config is ignoring Jan 25, 2018
@sunstorymvp
Copy link

Hello.

Is there any chance that this issue will be addressed? It seem like browserslist file is a community chosen place to define browsers support, either by defining browserslist file or browserslist key in package.json, but it is not used by linter-stylelint

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants