refactor: use eslint directly in lint-staged (#65660)

This commit is contained in:
Oliver Eyton-Williams
2026-02-02 16:06:28 +01:00
committed by GitHub
parent 00d84fece9
commit ab323914b0
+1 -4
View File
@@ -19,10 +19,7 @@ export const createLintStagedConfig = cwd => {
// just run prettier.
return lintableFiles.length === 0
? prettierCommand
: [
'turbo lint -- --fix ' + lintableFiles.join(' '),
...prettierCommand
];
: ['eslint --fix ' + lintableFiles.join(' '), ...prettierCommand];
},
'*.!(mjs|js|ts|tsx|css|md)': files =>
files.map(filename => `prettier --write --ignore-unknown '${filename}'`),