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:
@@ -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'],
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user