1
0
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:
Sunny Hirai 2021-07-08 22:59:12 -07:00
parent c3c3670c8b
commit f4168e28d3

View File

@ -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'],
}