Closed herkulano closed 7 years ago
I assume this is a typo, but your postcss config has:
"stylefmt": {
"config": ".stylelintrc"
},
while your description is missing the t
in the filename: "Testing simple rules in .stylelinrc".
@techieshark Thanks for pointing that out. It is indeed a typo. The file in the project is correctly named .stylelintrc
Hmm. Does stylefmt
work for you as a standalone command, rather than when used via postcss?
@herkulano ,@techieshark Option of stylefmt is wrong, try this:
"stylefmt": {
"config": {
...
}
},
or
"stylefmt": {
"configFile": ".stylelintrc"
},
@morishitter I think we need a document to describe Node API, just like: https://github.com/stylelint/stylelint/blob/master/docs/user-guide/node-api.md
@morishitter Thanks, it works great! 👍
Getting the error:
No rules found within configuration. Have you provided a "rules" property?
Running it in a npm script:
"css": "postcss -c .postcss.json",
Config file for postcss:
Testing simple rules in
.stylelintrc
with this scss: