From 0b27b2eeb34d0198d4ee7f0ff0660880720a2551 Mon Sep 17 00:00:00 2001 From: Masafumi Koba Date: Thu, 8 Feb 2018 22:27:15 +0900 Subject: [PATCH] fix(markdownlint): ignore CHANGELOG on pre-commit (#115) --- package.json | 2 +- test/init.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', })