提交 338e08b4 编写于 作者: J Joe Haddad 提交者: JJ Kasper

Adjust Commit Linting Hook (#9694)

上级 e11cf227
**/.next/**
**/_next/**
**/dist/**
......@@ -7,8 +7,10 @@ module.exports = {
.map(filename => `"${isWin ? filename : escape([filename])}"`)
.join(' ')
return [
`prettier --write ${escapedFileNames}`,
`eslint --max-warnings=0 --fix ${filenames.map(f => `"${f}"`).join(' ')}`,
`prettier --with-node-modules --ignore-path='./.prettierignore_staged' --write ${escapedFileNames}`,
`eslint --no-ignore --max-warnings=0 --fix ${filenames
.map(f => `"${f}"`)
.join(' ')}`,
`git add ${escapedFileNames}`,
]
},
......@@ -17,7 +19,7 @@ module.exports = {
.map(filename => `"${isWin ? filename : escape([filename])}"`)
.join(' ')
return [
`prettier --write ${escapedFileNames}`,
`prettier --with-node-modules --ignore-path='./.prettierignore_staged' --write ${escapedFileNames}`,
`git add ${escapedFileNames}`,
]
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册