meshviewer/tasks/linting.js

29 lines
585 B
JavaScript
Raw Normal View History

2015-03-29 12:43:02 +00:00
module.exports = function (grunt) {
2016-05-27 21:59:01 +00:00
"use strict";
2015-03-29 12:43:02 +00:00
grunt.config.merge({
checkDependencies: {
options: {
install: true
}
2015-03-29 12:43:02 +00:00
},
sasslint: {
options: {
2016-06-03 17:38:58 +00:00
configFile: ".sass-lint.yml"
},
target: ['scss/main.scss', 'scss/night.scss', 'scss/*/*.scss']
},
2015-03-29 12:43:02 +00:00
eslint: {
sources: {
2016-06-03 17:38:58 +00:00
src: ["app.js", "!Gruntfile.js", "lib/**/*.js", "tasks/**/*.js"]
2015-03-29 12:43:02 +00:00
},
grunt: {
src: ["Gruntfile.js", "tasks/*.js"]
}
}
});
2015-03-29 12:43:02 +00:00
grunt.loadNpmTasks('grunt-sass-lint');
grunt.loadNpmTasks("grunt-eslint");
};