We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1dbdc0 commit c1c280dCopy full SHA for c1c280d
src/utils/lint.ts
@@ -13,7 +13,10 @@ export async function lint(showBreakError = true) {
13
logInfo('\nLint and format code..');
14
15
try {
16
- execSync([`${findNearestNodemodulesFile('.bin/eslint')} ${eslintParam}`].join(' '), {
+ const commitedFiles = execSync('git diff --cached --name-only --diff-filter=ACM')
17
+ .toString()
18
+ .split('\n');
19
+ execSync([`${findNearestNodemodulesFile('.bin/eslint')} --fix`, ...commitedFiles].join(' '), {
20
stdio: 'inherit'
21
});
22
} catch (error) {
0 commit comments