-
Notifications
You must be signed in to change notification settings - Fork 338
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
fix: disabled caching during npm run lint #434
Conversation
This is off to a great start, thanks. I verified that the I went back and re-read the issue and remembered the main thing we need is for npm start to use The npm start command is an alias for grunt develop which calls the subtask watch:develop. This task is configured to call grunt lint but it should instead call As for grunt test, this command should not use the eslint cache (I was mistaken about that). This command runs once and exits so it's not important to use the cache. |
Thanks for the feedback! I will make the specified changes and open a new PR. |
@@ -35,7 +35,7 @@ module.exports = function(grunt) { | |||
grunt.registerTask('test', [ | |||
'build-tests', | |||
'mochaTest', | |||
'lint', | |||
'eslint', |
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 can continue to call the lint
task, it's the same thing
@@ -48,12 +48,9 @@ module.exports = function(grunt) { | |||
grunt.registerTask('lint', 'checks for syntax errors', function() { | |||
if (process.env.SKIP_LINT) { | |||
grunt.log.writeln('lint task skipped because of $SKIP_LINT'); | |||
} else if (semver.satisfies(process.version, '< 4.0.0')) { |
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.
At the top of the file, you can now remove the line that requires the semver
module. The lint command in the test suite caught this error for you :) Also, you can now remove semver
from package.json
because it's not used anywhere else.
Thanks for all the fix-ups. |
Fixes #339
The
.cache
directory is no longer created while runningnpm run lint