hugomrdias / prettier-stylelint

code > prettier > stylelint > formatted code
MIT License
175 stars 29 forks source link

Fail when it met `@import url("XXX") screen and (XXX);` #26

Open briefguo opened 5 years ago

briefguo commented 5 years ago
@import url('static/styles/common.var.less');

@import url("./index.lg.less");

@import url("./index.md.less") screen and (max-width: 768px);

@import url("./index.xs.less") screen and (max-width: 480px);

use prettier-stylelint format

prettier-stylelint --write
@import url('static/styles/common.var.less');

@import url('./index.lg.less');

@import url( max-width: 768px);

@import url( max-width: 480px);

I just want to format quotes, but it wound fail when it met @import url("XXX") screen and (XXX);