Skip to content
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

Improve npm test: lint #1525

Merged
merged 6 commits into from
Feb 19, 2015
Merged

Improve npm test: lint #1525

merged 6 commits into from
Feb 19, 2015

Conversation

Slayer95
Copy link
Contributor

No description provided.

@Slayer95 Slayer95 changed the title Improve npm test Improve npm test: lint Feb 13, 2015
@Slayer95
Copy link
Contributor Author

Ugh... spalger/gulp-jshint#88

@Slayer95
Copy link
Contributor Author

Hmm, if we are fine with the tag-specific dependency here, I might as well add a sane JSCS reporter.

"gulp": "~3.8.7",
"gulp-jshint": "~1.9.2",
"gulp-jscs": "~1.3.1",
"gulp-jshint": "git://github.com/spalger/gulp-jshint#c18df3a11",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

um, I'm not sure how I feel about tracking an unmaintained fork...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually just a single commit on top of the main repository, but we can let this PR stale until this feature -or an equivalent feature- gets released.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are your other changes good, or do they all depend on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

39ad898 depends on it... I guess I should take it out and add it later?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to do it however you think would be best.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, did otherwise.

- JSCS rule "disallowNewLineBeforeBlockStatements" is already in Google preset.
- JSHint rule "immed" is deprecated in favor of JSCS' "requireParenthesesAroundIIFE".
- JSHint rule "smarttabs" is deprecated in favor of JSCS' "disallowMixedSpacesAndTabs": "smart".
- JSHint rule "trailing" is deprecated in favor of JSCS' "disallowTrailingWhiteSpace".
- JSHint rule "newcap" is deprecated in favor of JSCS' "requireCapitalizedConstructors".
- Use an ES6 parser.
- Disallow "with".
- Only validate line breaks when running in CI environments.
- Add various missing rules regarding spacing and line breaks.
- Streams are merged to make sure that all errors and warnings are reported.
- Adds dev dependencies: `merge-stream` and `lazypipe`.
- Tracks a fork of `gulp-jshint` to fix spalger/gulp-jshint#88
- Remove `gulp-util`: it's not used and its installation is no longer recommended in Gulp's documentation.
- Next minor version for `gulp-jscs`. Next major for `jshint-stylish`.
Slayer95 added a commit that referenced this pull request Feb 19, 2015
Improve `npm test`: lint
@Slayer95 Slayer95 merged commit 1104731 into smogon:master Feb 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants