-
Notifications
You must be signed in to change notification settings - Fork 203
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
Fixes #1364 - add specific paths to js lint #1365
Conversation
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.
This works, but it means grunt eslint
and npm run lint
do different things now:
https://github.com/webcompat/webcompat.com/blob/master/grunt-tasks/eslint.js
We run grunt
from npm run build
, which we use in our .travis.yml file:
https://github.com/webcompat/webcompat.com/blob/master/.travis.yml#L52-L53
So we can either make grunt eslint
task match these args, OR remove the grunt eslint
task entirely and add npm run lint
to Travis (since removing it from grunt means it wont get invoked in npm run build
).
Intention for removing the eslint part of grunt was to start being less dependent on grunt as we'll get rid of it soon-ish. So, I'll add the task to the travis.yml. (Will do a test push, so make sure it works and fails.) --- edit --- |
e90ba78
to
15c4487
Compare
So will you remove that Grunt task in this PR? |
not the build as we'd need to move to webpack for that. Just the grunt task for the linter. small steps. or do you think about it otherwise? |
I guess I don't like the idea of having two eslint commands that are linting different sets of files, even temporarily (a few months?). Removing the Just remove https://github.com/webcompat/webcompat.com/blob/master/grunt-tasks/eslint.js, and remove the task from https://github.com/webcompat/webcompat.com/blob/master/Gruntfile.js#L26 and https://github.com/webcompat/webcompat.com/blob/master/Gruntfile.js#L31. And Line 29 in 28ac492
|
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.
Thanks!
#1364
Adding path to npm script to lint just specific js files.
r? @miketaylr