New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API #2
Comments
So am I right in thinking that, with the addition of And, just like cssnext, you'll be able to pass in a big options parameter. In stylelint's case, configuration options for the rules e.g: var output = stylelint(input, {
rules: {
indentation: {
default: 1,
char: "\t",
},
eof-newline: true
}
}) And, with the addition of If so, that all sounds fantastic to me! :) |
You are right 😉 |
Awesome :) |
Sounds great to me. Good thinking. |
I was thinking about writing some linter modules sometime soonish, and just wanted to ensure that they would be compatible with stylelint once stylelint gets going. So I have one question for @MoOx about the intentions of stylelint: If I write linting modules that register their complaints via the PostCSS 4.1+ warnings API, will that be enough for stylelint to understand and interpret them? Is the plan to build stylelint right on top of that API? |
FYI this messages API in postcss exists because I gave the idea for stylelint. So yes I would definitly use it :) For a quick start I plan to work on stylelint as a postcss plugin. I will try to work on this really soon. |
👍 |
Is it currently fonctionnal? If i read your source code i don't read anything about CSS. Just JS right? |
Nothing has been made yet. |
Until there is some other structure in place, what would you think of the following temporary setup:
?? Would that work as a temporary setup? I might have some time to write some rules soon -- e.g. at laundromat tonight :) -- so I wanted to see if there was an acceptable way to get something usable going. I can implement this if you agree with it. |
That would totally works for me. |
Ok. I understand that it's OSS and you do not have unlimited time, so definitely wasn't trying to pressure you :) Just wanted a starting point, and this would work. Cool! Hope I can write a few soon. |
Sounds good to me! |
I think we can close this one for now. Don't you think ? |
Yes. |
I just opened an issue on postcss that will helps a lot us. In fact that would make us just ready to drop rules as plugin & use this new message api.
postcss/postcss#177
Please give your opinion on this guys :)
The text was updated successfully, but these errors were encountered: