mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-01-17 21:49:20 +01:00
Match lintstagedrc to lint-staged in package.json
This commit is contained in:
parent
c3c3670c8b
commit
f4168e28d3
@ -11,10 +11,9 @@ const escape = require('shell-quote').quote
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
'*.{ts,tsx,js,json,css,md}': filenames => [
|
||||
...filenames.map(filename => `prettier --check "${escape([filename])}"`),
|
||||
'*.{ts,tsx,js,jsx,json,css,md}': filenames => [
|
||||
...filenames.map(filename => `prettier --write "${escape([filename])}"`),
|
||||
...filenames.map(filename => `git add "${filename}"`),
|
||||
],
|
||||
'*.{ts,tsx,js,md}': ['eslint'],
|
||||
'*.{ts,tsx,css,md}': ['stylelint'],
|
||||
'*.{ts,tsx,js,jsx,json,css,md}': ['eslint --fix'],
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user