1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-11 09:43:58 +02: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 = { module.exports = {
'*.{ts,tsx,js,json,css,md}': filenames => [ '*.{ts,tsx,js,jsx,json,css,md}': filenames => [
...filenames.map(filename => `prettier --check "${escape([filename])}"`), ...filenames.map(filename => `prettier --write "${escape([filename])}"`),
...filenames.map(filename => `git add "${filename}"`), ...filenames.map(filename => `git add "${filename}"`),
], ],
'*.{ts,tsx,js,md}': ['eslint'], '*.{ts,tsx,js,jsx,json,css,md}': ['eslint --fix'],
'*.{ts,tsx,css,md}': ['stylelint'],
} }