-
Notifications
You must be signed in to change notification settings - Fork 685
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
Add stylelint #43
Add stylelint #43
Conversation
@@ -9,75 +9,79 @@ GitHub: https://github.com/aynik | |||
*/ | |||
|
|||
@font-face { | |||
font-family: Inconsolata-g; | |||
src: url("fonts/inconsolatag.woff") format("woff"), url("fonts/inconsolatag.ttf") format("ttf"); | |||
font-family: Inconsolata-g; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uuuurgh, no, please no... :-)
client/css/style.css
is 2-space indentation, let's use that instead of tabs please. Plus it will reduce the change list a fair bit!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point raised by @xPaw on IRC is that style.css is not even 2-space...
@JocelynDelalande, |
Thing is, if you wait for Debian stable to be updated, you'll be supporting ancient versions of things for literally years. |
I know, I'm just looking for the sensible thing to do, and when it comes to Debian, @JocelynDelalande is clearly the right person to ask :-) |
Keep in mind 0.10 won't work for running stylelint, lounge itself should continue working. |
No matter how far behind a distro is, everything can run nvm, so there is no excuse for running an old version of node. I would be ok with adding it even if it breaks 0.10. 0.10 came out 3 years ago, and 0.12 came out last year. And bearing in mind we have 4 (lts) and 5 (stable) since then, I don't think it's unreasonable to limit it to 0.12 and above. I understand wanting to keep everything working, but we really restrict ourselves in that case, for example if we ever want to use ES6 features, we'll either need to use babel (which is quite heavy) or drop support for 0.12. |
Yeah, I agree with dropping 0.x versions from travis builds. If lounge will continue to work on these versions, then good for them. |
In something CI-driven, that's not a matter of dropping them from travis, that means dropping support. Thinking about this message :
I agree, as it means we don't need to drop support of 0.10 for this very PR. Skipping stylelint for 0.10 (or even 0.x) test suite seems better to me. No user lost, no complicated setup, no loss in quality neither. What do you think ? I'd be happy to discuss node versions support, debian ubuntu and folks in a dedicated topic then :-) (and yes, I may be the conservative guy, for good reasons ;-). |
I'm not suggesting dropping 0.10 overall. (nor am I suggesting keeping this enables if it breaks 0.10). What I'm suggesting ist hat if we have something that can either be for 4/5 and not 0.10/0.12 or overly complex, I would have no objections to dropping 0.10/0.12 support. |
So what do you think about that proposal (regarding this PR) :
|
Yeah, I'm happy with that for this pr. It'll still fail on all other On Mon, 15 Feb 2016, 18:16 JocelynDelalande notifications@github.com
|
It's a bit different, actually. On a laptop, you are supposed to update your software as frequently as possible. As a matter of fact, recent browsers auto-update. On a server, every upgrade decision is a long, very long process that involves countless tests, upgrade plans, ... Plus node comes installed in default packages on Debian and Ubuntu, which is what lots of admins rely on (for security and stability reasons, among others...).
My following statement being said, I fully agree that support should be kept only for the LTS and Stable versions (resp. 4 and 5)! Partly because fully in favor of ES6 (because it's 2016!) but also because that's the whole point of a LTS! Also, wasn't there an unresolved vulnerability with Node.js? (Hmmm, actually I think it was Express...)
Actually, we can't (and we shouldn't be able to!) do that. The way our Travis CI config works right now is that it runs |
Ok, actually, I supposed tests suites were run individualy by travis, which would have made my suggestion simpler.
For now, I agree with you.
To go forward, I'm ok for now, but as soon as we have better coverage, the issue will arise again. I do not add anything to the node version debate, on purpose, waiting for dedicated discussion. |
This is needed for #43 to pass the CI.
(Alright, taking ownership and first PR of this too...) Argh, somehow I can't comment on the I saw a few of these: -opacity: .8;
+opacity: 0.8; Is it something we have more in
I'm in favor of this Apart from this, I'm all good with this and the choices, very cool PR! |
@@ -14,7 +14,7 @@ | |||
"start": "node index", | |||
"build": "grunt", | |||
"test": "HOME=test/fixtures mocha test/**/*.js && npm run lint", | |||
"lint": "eslint ." | |||
"lint": "eslint . && stylelint \"**/*.css\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to wrap the selector with double-quotes, do you?
I think it might have been |
Personally, I prefer the more explicit 0.x rather than just .x |
@xPaw, could you rebase please? :-/ |
I amend my last comment: between well-distributed libs like Bootstrap, and CSS experts using this notation (ex: http://lea.verou.me/wp-content/themes/elegant/style.css), I do believe |
It's back to |
👍 |
Yeah, sure, I can live with that. I still prefer 0.x, as I think it's easy to miss the "." when it's at beginning, but not enough to argue about it. 👍 merging. |
Fixes #10