mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-30 17:54:28 +00:00
15c7b0c3ea
- grunt-jsonlint is replaced with grunt-eslint already - eslint-plugin-qunit is already defined in eslint-config-wikimedia Change-Id: I31fae687925738adac4ab62fb8650d268cc53efd
32 lines
619 B
JavaScript
32 lines
619 B
JavaScript
/* eslint-env node */
|
|
module.exports = function ( grunt ) {
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
|
grunt.initConfig( {
|
|
banana: {
|
|
all: 'i18n/'
|
|
},
|
|
eslint: {
|
|
options: {
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'**/*.{js,json}',
|
|
'!node_modules/**',
|
|
'!vendor/**'
|
|
]
|
|
},
|
|
stylelint: {
|
|
all: [
|
|
'**/*.css',
|
|
'!node_modules/**',
|
|
'!vendor/**'
|
|
]
|
|
}
|
|
} );
|
|
grunt.registerTask( 'test', [ 'banana', 'eslint', 'stylelint' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|