Skip to content

Commit

Permalink
tool(husky): move all lintstaged config to .lintstagedrc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar committed Jun 8, 2024
1 parent e6fcda9 commit 0179b17
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 14 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,18 @@ export default {
`yarn content fix-redirects en-US`,
`yarn content validate-redirects en-us --strict`,
],
"!*.md": (filenames) => [
`prettier --ignore-unknown --write ${filenames.join(" ")}`,
],
"*.md": (filenames) => [
`markdownlint-cli2 --fix ${filenames.join(" ")}`,
`node scripts/front-matter_linter.js --fix true ${filenames.join(" ")}`,
`node scripts/update-moved-file-links.js --check`,
`prettier --write ${filenames.join(" ")}`,
],
"tests/**/*.*": (filenames) => [`yarn test:front-matter-linter`],
"*.{svg,png,jpeg,jpg,gif}": (filenames) => [
`yarn filecheck ${filenames.join(" ")}`,
],
"*": (filenames) => [`node scripts/log-url-issues.js`],
};
12 changes: 0 additions & 12 deletions .lintstagedrc.json

This file was deleted.

0 comments on commit 0179b17

Please sign in to comment.