mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 19:01:54 +02:00
Add syntax highlighting example to menu
This commit is contained in:
16
.lintstagedrc.js
Normal file
16
.lintstagedrc.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const escape = require('shell-quote').quote
|
||||
|
||||
/**
|
||||
* Need this to fix a bug where we can't commit `pages/examples/[example].tsx`
|
||||
*
|
||||
* <https://github.com/okonet/lint-staged/issues/676#issuecomment-574764713>
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
'*.{ts,tsx,js,json,css}': filenames => [
|
||||
...filenames.map(filename => `prettier --check "${escape([filename])}"`),
|
||||
...filenames.map(filename => `git add "${filename}"`),
|
||||
],
|
||||
'*.{ts,tsx,js}': ['eslint'],
|
||||
'*.{ts,tsx,css}': ['stylelint'],
|
||||
}
|
Reference in New Issue
Block a user