Files
jquery.uls/Gruntfile.js
Ed S 7a6e559fe5 Update eslint and other devDependencies (#391)
* Update eslint and other devDependencies

* Lint JS in examples/ using eslint-plugin-html (#392)
2021-05-14 15:18:37 +05:30

42 lines
792 B
JavaScript

'use strict';
/* eslint-env node, es6 */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
grunt.initConfig( {
eslint: {
options: {
cache: true
},
all: [
'**/*.{js,json,html}',
'!src/jquery.uls.data.js',
'!scripts/jquery.uls.data.template.js',
'!examples/resources/*.min.js',
'!node_modules/**',
'!vendor/**'
]
},
stylelint: {
options: {
syntax: 'css'
},
src: [
'**/*.css',
'!node_modules/**'
]
},
qunit: {
all: 'test/index.html'
}
} );
grunt.registerTask( 'lint', [ 'eslint', 'stylelint' ] );
grunt.registerTask( 'test', [ 'lint', 'qunit' ] );
grunt.registerTask( 'default', 'test' );
};