Commit 338e08b4 authored by Joe Haddad's avatar Joe Haddad Committed by JJ Kasper

Adjust Commit Linting Hook (#9694)

parent e11cf227
**/.next/**
**/_next/**
**/dist/**
...@@ -7,8 +7,10 @@ module.exports = { ...@@ -7,8 +7,10 @@ module.exports = {
.map(filename => `"${isWin ? filename : escape([filename])}"`) .map(filename => `"${isWin ? filename : escape([filename])}"`)
.join(' ') .join(' ')
return [ return [
`prettier --write ${escapedFileNames}`, `prettier --with-node-modules --ignore-path='./.prettierignore_staged' --write ${escapedFileNames}`,
`eslint --max-warnings=0 --fix ${filenames.map(f => `"${f}"`).join(' ')}`, `eslint --no-ignore --max-warnings=0 --fix ${filenames
.map(f => `"${f}"`)
.join(' ')}`,
`git add ${escapedFileNames}`, `git add ${escapedFileNames}`,
] ]
}, },
...@@ -17,7 +19,7 @@ module.exports = { ...@@ -17,7 +19,7 @@ module.exports = {
.map(filename => `"${isWin ? filename : escape([filename])}"`) .map(filename => `"${isWin ? filename : escape([filename])}"`)
.join(' ') .join(' ')
return [ return [
`prettier --write ${escapedFileNames}`, `prettier --with-node-modules --ignore-path='./.prettierignore_staged' --write ${escapedFileNames}`,
`git add ${escapedFileNames}`, `git add ${escapedFileNames}`,
] ]
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment