switched to personal fork of grunt-jscs to inclide fix feature

This commit is contained in:
Spencer Alger 2015-04-02 09:23:05 -07:00
parent 8c0375fed3
commit ed2928ef31
3 changed files with 16 additions and 6 deletions

View file

@ -48,10 +48,11 @@
"with"
],
"validateIndentation": 2,
"validateQuoteMarks": { "mark": "'", "escape": true },
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"requireCapitalizedConstructors": true,
"requireDotNotation": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowMultipleLineStrings": true
}
}

View file

@ -77,7 +77,7 @@
"grunt-contrib-requirejs": "~0.4.4",
"grunt-contrib-watch": "~0.5.3",
"grunt-esvm": "~0.3.2",
"grunt-jscs": "^1.5.0",
"grunt-jscs": "git://github.com/spalger/grunt-jscs.git#addFix",
"grunt-mocha": "~0.4.10",
"grunt-replace": "^0.7.9",
"grunt-run": "^0.2.3",

View file

@ -1,11 +1,20 @@
module.exports = function (grunt) {
return {
// just lint the source dir
source: {
src: '<%= lintThese %>'
},
options: {
config: '.jscsrc'
},
// just lint the source dir
source: {
src: '<%= lintThese %>',
},
// fix any linting errors that can be fixed
fixup: {
src: '<%= lintThese %>',
options: {
fix: true
}
}
};
};