don't lint Gruntfile
All checks were successful
All checks were successful
This commit is contained in:
parent
b4036b1457
commit
eafbb940cb
2 changed files with 58 additions and 53 deletions
16
Gruntfile.js
16
Gruntfile.js
|
@ -1,6 +1,7 @@
|
|||
module.exports = function(grunt) {
|
||||
module.exports = function (grunt) {
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
grunt.initConfig(
|
||||
{
|
||||
checktextdomain: {
|
||||
options:{
|
||||
text_domain: 'activitypub-event-bridge',
|
||||
|
@ -42,16 +43,17 @@ module.exports = function(grunt) {
|
|||
},
|
||||
},
|
||||
options: {
|
||||
pre_convert: function( readme ) {
|
||||
pre_convert: function ( readme ) {
|
||||
return readme.replace( /\*\*Note\*\*:/g, "> [!NOTE]\n>" );
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
grunt.loadNpmTasks('grunt-wp-readme-to-markdown');
|
||||
grunt.loadNpmTasks('grunt-checktextdomain');
|
||||
grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
|
||||
grunt.loadNpmTasks( 'grunt-checktextdomain' );
|
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['wp_readme_to_markdown', 'checktextdomain']);
|
||||
grunt.registerTask( 'default', ['wp_readme_to_markdown', 'checktextdomain'] );
|
||||
};
|
|
@ -29,6 +29,9 @@
|
|||
<!-- Exclude minified Javascript files. -->
|
||||
<exclude-pattern>*.min.js</exclude-pattern>
|
||||
|
||||
<!-- Exclude the Grundfile.js. -->
|
||||
<exclude-pattern>Gruntfile.js</exclude-pattern>
|
||||
|
||||
<!-- Strip the filepaths down to the relevant bit. -->
|
||||
<arg name="basepath" value="."/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue