diff --git a/package.json b/package.json index eb27a3b6..37257929 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "eslint --fix --no-ignore", "git add" ], - "*.md": "markdownlint" + "*.md": "markdownlint --ignore CHANGELOG.md" }, "standard-version": { "message": "chore(release): new version %s" diff --git a/test/init.test.js b/test/init.test.js index ce2232f8..5b12b97f 100644 --- a/test/init.test.js +++ b/test/init.test.js @@ -56,7 +56,7 @@ suite('init', () => { assert.deepStrictEqual(pkg['lint-staged'], { '*.{js,jsx,mjs}': ['eslint --fix --no-ignore', 'git add'], - '*.md': 'markdownlint', + '*.md': 'markdownlint --ignore CHANGELOG.md', '*.css': 'xyz', })