diff --git a/Gruntfile.js b/Gruntfile.js index 9c11cd02..ef614e33 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -87,7 +87,10 @@ module.exports = function(grunt) { // Exludes // TODO: remove this (for now we still get warnings from the lib folder) '!src/js/**/lib/**/*.js' - ] + ], + options: { + fix: grunt.option('fix') // this will get params from the flags + } }, /** diff --git a/package.json b/package.json index 05ee49b9..007df1cc 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "postversion": "git push && git push --tags && npm publish", "release": "grunt && node ./bin/copy-to-piskel-website", "build": "grunt desktop", - "build:mac": "grunt desktop-mac" + "build:mac": "grunt desktop-mac", + "format": "grunt eslint --fix" }, "devDependencies": { "dateformat": "2.0.0",