Added JSCS & JSHint with Travis CI config #317
Conversation
@arthurvr @grayghostvisuals @benschwarz @wellingguzman Please review 🎱 |
No real need for such comments. We're all busy and will try to get to this as soon as possible. |
@@ -0,0 +1,7 @@ | |||
language: node_js | |||
node_js: | |||
- "0.10" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@arthurvr no offense intended with the mention. Will make changes. |
Heres a new checklist of action after review
|
Also please squash your commits. |
|
||
// Load NPM Tasks | ||
// https://github.com/shootaroo/jit-grunt | ||
require('jit-grunt')(grunt); | ||
require ( 'jit-grunt' ) ( grunt ); |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Should we consider dropping the current JavaScript style guide and going with an already-existing style guide? It's something else we don't have to maintain and honestly ours is pretty ugly and incomplete. Now is the right time to discuss it. |
We also need a Travis CI badge in the readme. |
@arthurvr I guess the Travis CI Badge can only be added by one of the core contributors on h5bp, since if anyone else adds it itll point to their builds. I will wait for further discussions before proceeding further regarding the code style. |
No, you can perfectly just edit the link address to point to our repo :p |
ok :) will do. In general isn't jQuery's coding style considered pretty mature? |
Define "mature"? jQuery's code style guide is pretty ugly in my opinion but it's to the @h5bp/effeckt-css team to decide this. |
mature is generally accepted and followed widely? |
We can reestablish the code guideline, there's probably are some not common things there, since I wrote what I've used by that time as the guideline. Please you should squash those commits, Getting-Started Wiki so that way would be easier to git bisect, or track changes. |
@wellingguzman Will squash my commits when I get time later today :) |
@@ -2,6 +2,7 @@ | |||
/.sass-cache/ | |||
dist | |||
node_modules/ | |||
.idea/ |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Yeah, we should really revision it. |
jscs: { | ||
demo:[ 'js/demo/*.js' ], | ||
modules:[ 'js/modules/*.js' ], | ||
all:[ 'js/**/*.js' ] |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Can we revision the code guideline first and then revise this PR with changes? Because it looks like efforts on this PR will not be complete without the code guidelines being revised. |
We can always land the grunt configs and discussion revision of the style guide later on. |
ok I will be doing the grunt and the JSCS config first and raising a PR. |
@ShashankaNataraj Is this ever going to be completed ? |
@Romainpetit Don't think so my friend. I lost interest in this a long time back |
@ShashankaNataraj What needs to be completed , I be happy to work on this ? |
@naeluh @Romainpetit Snarky comments from the maintainers of this project put me off from completing this PR. Now, Im going to unsubscribe from this thread and let this PR rot. Aidos. |
This PR fixes #314
curly:true
"validateIndentation": 2
requireSpacesInAnonymousFunctionExpression,requireSpacesInCallExpression,requireSpacesInConditionalExpression,requireSpacesInForStatement,requireSpacesInFunctionDeclaration,requireSpacesInFunctionExpression,requireSpacesInFunction,requireSpacesInNamedFunctionExpression
"requireSpaceAfterObjectKeys": true
"requireSpacesInsideParentheses":"all","requireSpacesInsideArrayBrackets": "all"
"requireSpaceAfterBinaryOperators":["="],"requireSpaceBeforeBinaryOperators":["="]
"disallowSpaceAfterPrefixUnaryOperators":["++", "--", "+", "-", "~", "!"]
"validateParameterSeparator":", "
"requireMultipleVarDecl":true
"requireMultipleVarDecl":true
"requireSemicolons":true
("requireSpaceAfterLineComment":true)
"disallowSpaceAfterBinaryOperators":[","],
requireDollarBeforejQueryAssignment:true
"disallowMixedSpacesAndTabs": true
"disallowMultipleSpaces":true
"disallowTrailingComma":true
"requireLineFeedAtFileEnd":true
Style guidelines which do not have jshint / jscsc equivalents: