diff --git a/commitlint.config.js b/commitlint.config.js index 2516b369..2d58811b 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -17,6 +17,7 @@ module.exports = { 'release', 'init', 'api', + 'markdownlint', ], ], }, diff --git a/package.json b/package.json index 17546d0b..9d0a697c 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "test:coverage": "nyc report --reporter=text-lcov > coverage.lcov", "lint:js": "eslint --ignore-path .gitignore --ext .js,.jsx,.mjs .", "lint:js:fix": "npm run lint:js -- --fix", - "lint:md": "markdownlint *.md", + "lint:md": "markdownlint --ignore node_modules \"**/*.md\"", "lint": "npm-run-all --print-name --print-label --parallel lint:*", "commitmsg": "commitlint -e $GIT_PARAMS", "precommit": "lint-staged", diff --git a/test/init.test.js b/test/init.test.js index 1ab98c4b..bde1e7dd 100644 --- a/test/init.test.js +++ b/test/init.test.js @@ -40,7 +40,7 @@ suite('init', () => { commitmsg: 'commitlint -e $GIT_PARAMS', 'lint:js': 'eslint --ignore-path .gitignore --ext .js,.jsx,.mjs .', 'lint:js:fix': 'npm run lint:js -- --fix', - 'lint:md': 'markdownlint *.md', + 'lint:md': 'markdownlint --ignore node_modules "**/*.md"', lint: 'npm-run-all --print-name --print-label --parallel lint:*', precommit: 'lint-staged', release: 'standard-version',