generated from hack4impact-utk/nextjs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f77163a
commit 035d46f
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(' ')}`, | ||
}; |