mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-23 13:56:46 +00:00
build: Run stylelint for less file
Since b2113e01
a less file exists
Change-Id: I77bbbb2dbbc9dba3ce5858fe5e0732e11ba803e5
This commit is contained in:
parent
927a41a770
commit
4113b90e4c
6
.stylelintrc.json
Normal file
6
.stylelintrc.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"stylelint-config-wikimedia/support-basic",
|
||||
"stylelint-config-wikimedia/mediawiki"
|
||||
]
|
||||
}
|
|
@ -4,6 +4,7 @@ module.exports = function ( grunt ) {
|
|||
|
||||
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||
grunt.loadNpmTasks( 'grunt-eslint' );
|
||||
grunt.loadNpmTasks( 'grunt-stylelint' );
|
||||
|
||||
grunt.initConfig( {
|
||||
banana: conf.MessagesDirs,
|
||||
|
@ -15,9 +16,15 @@ module.exports = function ( grunt ) {
|
|||
'**/*.js{,on}',
|
||||
'!{vendor,node_modules}/**'
|
||||
]
|
||||
},
|
||||
stylelint: {
|
||||
all: [
|
||||
'**/*.{css,less}',
|
||||
'!{vendor,node_modules}/**'
|
||||
]
|
||||
}
|
||||
} );
|
||||
|
||||
grunt.registerTask( 'test', [ 'eslint', 'banana' ] );
|
||||
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
||||
grunt.registerTask( 'default', 'test' );
|
||||
};
|
||||
|
|
3235
package-lock.json
generated
3235
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -8,6 +8,8 @@
|
|||
"eslint-config-wikimedia": "0.25.0",
|
||||
"grunt": "1.6.1",
|
||||
"grunt-banana-checker": "0.11.0",
|
||||
"grunt-eslint": "24.0.1"
|
||||
"grunt-eslint": "24.0.1",
|
||||
"grunt-stylelint": "0.19.0",
|
||||
"stylelint-config-wikimedia": "0.16.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-image: url( './desc-20.png' );
|
||||
background-image: url( desc-20.png );
|
||||
}
|
||||
|
||||
:not( figcaption ) .mw-ext-imagemap-desc-link {
|
||||
|
@ -15,14 +15,17 @@
|
|||
top: 5px;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
.mw-ext-imagemap-desc-bottom-right > & {
|
||||
bottom: 5px;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
.mw-ext-imagemap-desc-bottom-left > & {
|
||||
bottom: 5px;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
.mw-ext-imagemap-desc-top-left > & {
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
|
|
Loading…
Reference in a new issue