mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-12 09:58:17 +00:00
2919c2b613
* stylelint-config-wikimedia: 0.7.0 → 0.8.0 * grunt-stylelint: 0.12.0 → 0.13.0 Additional changes: * And updating CoC link to use Special:MyLanguage (T202047). * Set `private: true` in package.json. * Set `root: true` in .eslintrc.json (T206485). * Added .eslintcache to .gitignore. * Removing manual reportUnusedDisableDirectives for eslint. Change-Id: I18a1f384d62d71ed40be67f20000a03cb741a7d0
34 lines
705 B
JavaScript
34 lines
705 B
JavaScript
/* eslint-env node, es6 */
|
|
|
|
module.exports = function ( grunt ) {
|
|
var conf = grunt.file.readJSON( 'extension.json' );
|
|
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
|
grunt.loadNpmTasks( 'grunt-eslint' );
|
|
grunt.loadNpmTasks( 'grunt-stylelint' );
|
|
|
|
grunt.initConfig( {
|
|
eslint: {
|
|
options: {
|
|
extensions: [ '.js', '.json' ],
|
|
cache: true
|
|
},
|
|
all: [
|
|
'*.{js,json}',
|
|
'modules/**/*.{js,json}',
|
|
'tests/**/*.{js,json}',
|
|
'!modules/lib/**'
|
|
]
|
|
},
|
|
stylelint: {
|
|
all: [
|
|
'*.{css,less}',
|
|
'modules/**/*.{css,less}'
|
|
]
|
|
},
|
|
banana: conf.MessagesDirs
|
|
} );
|
|
|
|
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
|
grunt.registerTask( 'default', 'test' );
|
|
};
|