Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
feat(lint-staged): use absolute path to prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Nov 27, 2018
1 parent 25536dc commit b3afa53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
const { resolve } = require('path')

const { resolveBin } = require('./resolve-utils')

module.exports = {
'*{rc,.md,.js{on,}}': [
'prettier --config ' + resolve(__dirname, './.prettierrc.js') + ' --write',
resolveBin('prettier') +
' --config ' +
resolve(__dirname, './.prettierrc.js') +
' --write',
'git add'
]
}

0 comments on commit b3afa53

Please sign in to comment.