We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prettier-ignore removes script tag when ignored by //- prettier-ignore in PUG template.
prettier-ignore
//- prettier-ignore
{ "printWidth": 80, "tabWidth": 2, "useTabs": false, "semi": true, "singleQuote": true, "quoteProps": "as-needed", "jsxSingleQuote": true, "trailingComma": "es5", "bracketSpacing": true, "bracketSameLine": true, "arrowParens": "avoid", "endOfLine": "lf", "embeddedLanguageFormatting": "off", "pugAttributeSeparator": "none", "pugClosingBracketPosition": "last-line", "pugWrapAttributesPattern": "-1" }
//- SCRIPTS script(async src='https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXXX') //- prettier-ignore script. window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', 'AW-XXXXXXXXX');
It should ignore formatting of script tag and its code, But it completely removes the script tag with the code inside.
The text was updated successfully, but these errors were encountered:
Please search for a workaround for the next two weeks I will be in Singapore for the next two weeks for vacation
Sorry, something went wrong.
Shinigami92
Successfully merging a pull request may close this issue.
Script tag is removed when ignoring
prettier-ignore
removes script tag when ignored by//- prettier-ignore
in PUG template.Prettier config
Input
Expected Output
It should ignore formatting of script tag and its code, But it completely removes the script tag with the code inside.
OnSave - script tag gets deleted
The text was updated successfully, but these errors were encountered: