meshviewer/tasks/linting.js

29 lines
592 B
JavaScript
Raw Normal View History

module.exports = function exports(grunt) {
'use strict';
2016-05-27 21:59:01 +00:00
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: {
configFile: '.sass-lint.yml'
},
target: ['scss/main.scss', 'scss/night.scss', 'scss/*/*.scss']
},
2015-03-29 12:43:02 +00:00
eslint: {
sources: {
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
}
}
});
2015-03-29 12:43:02 +00:00
grunt.loadNpmTasks('grunt-sass-lint');
grunt.loadNpmTasks('grunt-eslint');
};