Reputation: 884
i want formating like this
@Matches(
/^[a-zA-Z0-9_.-]*$/,{
message: 'Please try again'
})
Prettier reformat to
@Matches(
/^[a-zA-Z0-9_.-]*$/,
{
message: 'Please try again'
}
)
I dont want to disable prettier, i have .prettierrc file in root for configuration
Upvotes: 1
Views: 575
Reputation: 21
To exclude files from formatting, add entries to a .prettierignore file in the project root or set the --ignore-path CLI option. .prettierignore uses gitignore syntax.
https://prettier.io/docs/en/ignore.html
Hope this helps.
Upvotes: 1