Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Build: Enable fix option for fixing files with jscs
Browse files Browse the repository at this point in the history
- Passing the --fix option with jscs task will now fix the files
automatically

Closes #8412
  • Loading branch information
apsdehal authored and arschmitz committed Jul 4, 2016
1 parent 554985b commit 88b088a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/tasks/options/jscs.js
@@ -1,7 +1,11 @@
module.exports = function( grunt ) {

return {
options: {
config: true
config: true,

// Check if fix is enabled
fix: grunt.option( "fix" ) || process.env.FIX || false
},
build: {
src: [ "build/**/*.js", "*.js" ]
Expand Down Expand Up @@ -97,3 +101,4 @@ return {
src: "test/**/*.js"
}
};
};

0 comments on commit 88b088a

Please sign in to comment.