Skip to content

Commit

Permalink
fix lintstaged requiring yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
zaviermiller committed Oct 17, 2023
1 parent f77163a commit 035d46f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = {
// Type check TypeScript files
'**/*.(ts|tsx)': () => 'yarn tsc --noEmit',
'**/*.(ts|tsx)': () => 'npx tsc --noEmit',

// Lint & Prettify TS and JS files
'**/*.(ts|tsx|js)': (filenames) => [
`yarn eslint ${filenames.join(' ')}`,
`yarn prettier --write ${filenames.join(' ')}`,
`npx eslint ${filenames.join(' ')}`,
`npx prettier --write ${filenames.join(' ')}`,
],

// Prettify only Markdown and JSON files
'**/*.(md|json)': (filenames) =>
`yarn prettier --write ${filenames.join(' ')}`,
`npx prettier --write ${filenames.join(' ')}`,
};

0 comments on commit 035d46f

Please sign in to comment.