Skip to content

Commit

Permalink
fix(remark): missing linting on pre-commit (#430)
Browse files Browse the repository at this point in the history
This fixes a bug introduced by #428.
  • Loading branch information
ybiquitous committed Jun 24, 2019
1 parent 48fbe47 commit 389aaa6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
"eslint --fix --no-ignore",
"git add"
],
"*.md": [
"remark --frail"
],
"*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": [
"prettier --write",
"git add"
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"lint-staged": {
"linters": {
"*.{js,jsx,mjs,ts,tsx}": ["eslint --fix --no-ignore", "git add"],
"*.md": ["remark --frail"],
"*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": ["prettier --write", "git add"]
},
"ignore": ["CHANGELOG.md"]
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"*.css": "xyz",
"linters": {
"*.{js,jsx,mjs,ts,tsx}": ["eslint --fix --no-ignore", "git add"],
"*.md": ["remark --frail"],
"*.{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 389aaa6

Please sign in to comment.