Prettier for PUG templates (#26170)
* Setup prettier * Ignore these pug templates by prettier * Fix typo * Fix prettier error * Add prettier-ignore for quoting of event-segmentation attribute * Manual tab indentation * Interpolate * Remove unbuffered if conditional * Inline event-segmentation objects and remove prettier-ignore rule * Fix spacing before interpolation * Source format * Source format GitOrigin-RevId: c30e037f5caf8f91efc1bd9e75f81ae533b5a506
This commit is contained in:
@@ -455,12 +455,19 @@ format: format_styles
|
||||
format_styles:
|
||||
npm run --silent format:styles
|
||||
|
||||
format: format_pug
|
||||
format_pug:
|
||||
npm run --silent format:pug
|
||||
|
||||
format_fix:
|
||||
npm run --silent format:fix
|
||||
|
||||
format_styles_fix:
|
||||
npm run --silent format:styles:fix
|
||||
|
||||
format_pug_fix:
|
||||
npm run --silent format:pug:fix
|
||||
|
||||
format_in_docker:
|
||||
$(RUN_LINT_FORMAT) make format -j2 --output-sync
|
||||
|
||||
|
||||
Reference in New Issue
Block a user