From 48fbe47231fe206eb8a9ccef8ed75ae110c2e859 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Mon, 24 Jun 2019 11:12:19 +0900 Subject: [PATCH] feat(remark): stop auto-fix on pre-commit (#428) There is a possibility to conflict with Prettier. BREAKING CHANGE: please configure manually if you want to fix markdown files on pre-commit --- package.json | 4 ---- test/fixtures/package-empty_expected.json | 1 - test/fixtures/package-normal_expected.json | 1 - 3 files changed, 6 deletions(-) diff --git a/package.json b/package.json index bc854c6d..c9e626c8 100644 --- a/package.json +++ b/package.json @@ -73,10 +73,6 @@ "eslint --fix --no-ignore", "git add" ], - "*.md": [ - "remark --output --", - "git add" - ], "*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": [ "prettier --write", "git add" diff --git a/test/fixtures/package-empty_expected.json b/test/fixtures/package-empty_expected.json index 6d1e1a97..cb15362f 100644 --- a/test/fixtures/package-empty_expected.json +++ b/test/fixtures/package-empty_expected.json @@ -24,7 +24,6 @@ "lint-staged": { "linters": { "*.{js,jsx,mjs,ts,tsx}": ["eslint --fix --no-ignore", "git add"], - "*.md": ["remark --output --", "git add"], "*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": ["prettier --write", "git add"] }, "ignore": ["CHANGELOG.md"] diff --git a/test/fixtures/package-normal_expected.json b/test/fixtures/package-normal_expected.json index 85bffc34..b69e249f 100644 --- a/test/fixtures/package-normal_expected.json +++ b/test/fixtures/package-normal_expected.json @@ -25,7 +25,6 @@ "*.css": "xyz", "linters": { "*.{js,jsx,mjs,ts,tsx}": ["eslint --fix --no-ignore", "git add"], - "*.md": ["remark --output --", "git add"], "*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": ["prettier --write", "git add"] }, "ignore": ["CHANGELOG.md"]