diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 3981e2a7..8896e674 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,13 +1,9 @@ module.exports = { - '*.+(js|ts)': 'npx eslint --cache --ext .js,.ts', - '*.yml': [ - 'npx prettier --parser yaml --write', - 'git diff --exit-code --quiet' - ], + '*.+(js|ts)': ['eslint --cache --ext .js,.ts', 'prettier --check'], + '*.yml': 'prettier --check', 'package.json': [ - 'npx fixpack', - 'npx prettier --parser json-stringify --write', - 'git diff --exit-code --quiet' + 'npx fixpack --dryRun', + 'prettier --check --parser json-stringify' ], 'package-lock.json': 'node -e "process.exitCode = 1;"' };