Closed nikitabelonogov closed 5 years ago
lint-staged
execute command for each changed file separately
e.g.: npm run prettier:fix <file_name>
BUT there is a filter difined in the prettier:fix
step. The final command is the following:
prettier --config .prettierrc.yaml --write 'src/**/*.{js,jsx,scss} <file_name>'
And prettier
goes crazy here 🤪. It executes for filter files not only for <file_name>
.
I suggest to go with this solution w/ filter.
@ooow I'll check this case today.
I faced the issue
Steps to reproduce:
{
f.e.: src/app/components/AdCard/AdCard.scss:}