Skip to content

Commit

Permalink
remove redundancy from precommit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
neila committed Dec 7, 2022
1 parent cca550e commit 07a7e29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .lintstagedrc

This file was deleted.

9 changes: 9 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const path = require('path');

const buildTextLintCommand = (filenames) => `textlint ${filenames
.map((f) => path.relative(process.cwd(), f))
.join(' ')}`

module.exports = {
"docs/**/*.md": [buildTextLintCommand]
}

0 comments on commit 07a7e29

Please sign in to comment.