mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-23 15:57:03 +00:00
build: Add stylelint for less file
Follow-Up: I76b9bbb939afde1d7d951925818fd15f40022ead Change-Id: I6e08d26bce3c6903002dabf9f117ea7ff2f69383
This commit is contained in:
parent
3224e41f04
commit
bfea4d093b
3
.stylelintrc.json
Normal file
3
.stylelintrc.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": "stylelint-config-wikimedia"
|
||||
}
|
10
Gruntfile.js
10
Gruntfile.js
|
@ -4,6 +4,7 @@ module.exports = function ( grunt ) {
|
|||
|
||||
grunt.loadNpmTasks( 'grunt-eslint' );
|
||||
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||
grunt.loadNpmTasks( 'grunt-stylelint' );
|
||||
|
||||
grunt.initConfig( {
|
||||
eslint: {
|
||||
|
@ -15,9 +16,16 @@ module.exports = function ( grunt ) {
|
|||
'!{vendor,node_modules}/**'
|
||||
]
|
||||
},
|
||||
stylelint: {
|
||||
all: [
|
||||
'**/*.{css,less}',
|
||||
'!node_modules/**',
|
||||
'!vendor/**'
|
||||
]
|
||||
},
|
||||
banana: conf.MessagesDirs
|
||||
} );
|
||||
|
||||
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
||||
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
||||
grunt.registerTask( 'default', 'test' );
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
.ext-nuke-italicize {
|
||||
font-style: italic;
|
||||
}
|
||||
font-style: italic;
|
||||
}
|
||||
|
|
3041
package-lock.json
generated
3041
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -8,6 +8,8 @@
|
|||
"eslint-config-wikimedia": "0.27.0",
|
||||
"grunt": "1.6.1",
|
||||
"grunt-banana-checker": "0.13.0",
|
||||
"grunt-eslint": "24.3.0"
|
||||
"grunt-eslint": "24.3.0",
|
||||
"grunt-stylelint": "0.19.0",
|
||||
"stylelint-config-wikimedia": "0.16.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue