Skip to content

Commit

Permalink
feat(remark): stop auto-fix on pre-commit (#428)
Browse files Browse the repository at this point in the history
There is a possibility to conflict with Prettier.

BREAKING CHANGE: please configure manually if you want to fix markdown files on pre-commit
  • Loading branch information
ybiquitous committed Jun 24, 2019
1 parent 5a2bb23 commit 48fbe47
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 48fbe47

Please sign in to comment.