Skip to content

Commit 9b15eb8

Browse files
committed
chore: add standards tools since Node.js 12.14.0 upgrade
1 parent 47e5292 commit 9b15eb8

File tree

6 files changed

+3054
-468
lines changed

6 files changed

+3054
-468
lines changed

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/@silvermine/standardization/.markdownlint.json"
3+
}

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ before_install: npm i -g [email protected]
1111
script:
1212
- node --version
1313
- npm --version
14+
- commitlint-travis
1415
- grunt standards
1516
- npm test
1617

Gruntfile.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
var markdownlint = require('markdownlint');
4+
35
module.exports = function(grunt) {
46

57
var config;
@@ -18,11 +20,22 @@ module.exports = function(grunt) {
1820
target: config.js.all,
1921
},
2022

23+
markdownlint: {
24+
all: {
25+
src: [ 'README.md' ],
26+
options: {
27+
// eslint-disable-next-line no-sync
28+
config: markdownlint.readConfigSync('.markdownlint.json'),
29+
},
30+
},
31+
},
32+
2133
});
2234

2335
grunt.loadNpmTasks('grunt-eslint');
36+
grunt.loadNpmTasks('grunt-markdownlint');
2437

25-
grunt.registerTask('standards', [ 'eslint' ]);
38+
grunt.registerTask('standards', [ 'eslint', 'markdownlint' ]);
2639
grunt.registerTask('default', [ 'standards' ]);
2740

2841
};

commitlint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: [ '@silvermine/standardization/commitlint.js' ],
5+
};

0 commit comments

Comments
 (0)