Skip to content

Commit

Permalink
fix: removing alex from linting markdown
Browse files Browse the repository at this point in the history
Based on get-alex/alex#348, any pre-commit
hooks are going to throw an error for files ignored.

Signed-off-by: Newton <[email protected]>
  • Loading branch information
iamnewton committed Oct 16, 2024
1 parent 30be806 commit 9fa9e47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/lint-staged-config/lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
export default {
"*.css": "stylelint --fix",
"*.{js,jsx}": ["prettier --write", "eslint"],
"*.md": ["prettier --write", "alex"],
"!CHANGELOG.md": [],
"*.md": ["prettier --write"], // disabling alex --why because of https://github.com/get-alex/alex/issues/348
"*.mdx": ["prettier --write", "alex --mdx --why"],
"*.{png,jpeg,jpg,gif,svg}": "imagemin-lint-staged",
"*.scss": "stylelint --syntax=scss --fix",
Expand Down

0 comments on commit 9fa9e47

Please sign in to comment.