mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor: use eslint directly in lint-staged (#65660)
This commit is contained in:
committed by
GitHub
parent
00d84fece9
commit
ab323914b0
@@ -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}'`),
|
||||
|
||||
Reference in New Issue
Block a user