Files
jquery.uls/Gruntfile.js
Amir E. Aharoni 817b4a4318 Update grunt-eslint versions
This was suggested by `npm audit`.

Also changing the configuration: the "syntax" option
is no longer needed.
2022-01-28 09:56:21 +02:00

39 lines
754 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: {
src: [
'**/*.css',
'!node_modules/**'
]
},
qunit: {
all: 'test/index.html'
}
} );
grunt.registerTask( 'lint', [ 'eslint', 'stylelint' ] );
grunt.registerTask( 'test', [ 'lint', 'qunit' ] );
grunt.registerTask( 'default', 'test' );
};