2015-02-07 21:48:42 +01:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
return {
|
2015-04-02 18:23:05 +02:00
|
|
|
options: {
|
|
|
|
config: '.jscsrc'
|
|
|
|
},
|
|
|
|
|
2015-02-07 21:48:42 +01:00
|
|
|
// just lint the source dir
|
|
|
|
source: {
|
2015-04-02 18:23:05 +02:00
|
|
|
src: '<%= lintThese %>',
|
2015-02-07 21:48:42 +01:00
|
|
|
},
|
2015-04-02 18:23:05 +02:00
|
|
|
|
|
|
|
// fix any linting errors that can be fixed
|
|
|
|
fixup: {
|
|
|
|
src: '<%= lintThese %>',
|
|
|
|
options: {
|
|
|
|
fix: true
|
|
|
|
}
|
2015-02-07 21:48:42 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|