@prettier/plugin-pug
Advanced tools
Comparing version 1.15.2 to 1.15.3
# Next | ||
[diff](https://github.com/prettier/plugin-pug/compare/1.15.2...main) | ||
[diff](https://github.com/prettier/plugin-pug/compare/1.15.3...main) | ||
# 1.15.2 | ||
[diff](https://github.com/prettier/plugin-pug/compare/1.15.2...1.15.3) | ||
- Upgrade to Prettier v2.3 | ||
_This fixes `pugSingleFileComponentIndentation` option in combination with prettier v2.3_ | ||
# 1.15.2 | ||
[diff](https://github.com/prettier/plugin-pug/compare/1.15.1...1.15.2) | ||
@@ -8,0 +15,0 @@ |
@@ -86,2 +86,2 @@ "use strict"; | ||
exports.defaultOptions = exports.plugin.defaultOptions; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBYUEsaUNBQWlDO0FBQ2pDLHFDQUEwRDtBQUUxRCx1Q0FBa0Q7QUFDbEQsaURBQXFEO0FBRXJELHVDQUF1QztBQUV2QyxNQUFNLE1BQU0sR0FBVyxxQkFBWSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0FBQzdDLElBQUksT0FBTyxDQUFDLEdBQUcsQ0FBQyxRQUFRLEtBQUssTUFBTSxFQUFFO0lBQ3BDLE1BQU0sQ0FBQyxXQUFXLENBQUMsaUJBQVEsQ0FBQyxLQUFLLENBQUMsQ0FBQztDQUNuQztBQVNZLFFBQUEsTUFBTSxHQUFXO0lBQzdCLFNBQVMsRUFBRTtRQUNWO1lBQ0MsSUFBSSxFQUFFLEtBQUs7WUFDWCxPQUFPLEVBQUUsQ0FBQyxLQUFLLENBQUM7WUFDaEIsT0FBTyxFQUFFLFdBQVc7WUFDcEIsT0FBTyxFQUFFLE1BQU07WUFDZixjQUFjLEVBQUUsS0FBSztZQUNyQixrQkFBa0IsRUFBRSxZQUF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UFFekUsUUFBQSxPQUFPLEdBQStCLGNBQU0sQ0FBQyxPQUFPLENBQUM7QUFFckQsUUFBQSxjQUFjLEdBQXlDLGNBQU0sQ0FBQyxjQUFjLENBQUMifQ== |
@@ -33,3 +33,5 @@ "use strict"; | ||
pugEmptyAttributesForceQuotes: options.pugEmptyAttributesForceQuotes, | ||
pugSingleFileComponentIndentation: options.pugSingleFileComponentIndentation && options.embeddedInHtml, | ||
pugSingleFileComponentIndentation: options.pugSingleFileComponentIndentation && | ||
(options.__embeddedInHtml || | ||
options.embeddedInHtml), | ||
pugFramework: options.pugFramework | ||
@@ -39,2 +41,2 @@ }; | ||
exports.convergeOptions = convergeOptions; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVyZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvb3B0aW9ucy9jb252ZXJnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFVQSxTQUFnQixlQUFlLENBQUMsT0FBeUM7O0lBQ3hFLE9BQU87UUFDTixVQUFVLEVBQUUsT0FBTyxDQUFDLFVBQVU7UUFDOUIsYUFBYSxFQUFFLE9BQU8sQ0FBQyxhQUFhLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxVQUFVO1FBQ3hGLFdBQVcsRUFBRSxPQUFPLENBQUMsV0FBVztRQUNoQyxjQUFjLEVBQUUsTUFBQSxPQUFPLENBQUMsY0FBYyxtQ0FBSSxPQUFPLENBQUMsV0FBVztRQUM3RCxRQUFRLEVBQUUsT0FBTyxDQUFDLFFBQVE7UUFDMUIsV0FBVyxFQUFFLE9BQU8sQ0FBQyxXQUFXLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxXQUFXLENBQUMsQ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CQUFrQixFQUFFLE9BQU8sQ0FBQyxrQkFBa0I7UUFDOUMsNkJBQTZCLEVBQUUsT0FBTyxDQUFDLDZCQUE2QjtRQUNwRSxpQ0FBaUMsRUFDaEMsT0FBTyxDQUFDLGlDQUFpQztZQUN6QyxDQUFDLE9BQU8sQ0FBQyxnQkFBZ0I7Z0JBRXhCLE9BQU8sQ0FBQyxjQUFjLENBQUM7UUFDekIsWUFBWSxFQUFFLE9BQU8sQ0FBQyxZQUFZO0tBQ2xDLENBQUM7QUFDSCxDQUFDO0FBbkNELDBDQW1DQyJ9 |
{ | ||
"name": "@prettier/plugin-pug", | ||
"version": "1.15.2", | ||
"version": "1.15.3", | ||
"description": "Prettier Pug Plugin", | ||
@@ -43,23 +43,23 @@ "main": "dist/index.js", | ||
"@types/jest": "~26.0.23", | ||
"@types/node": "~15.0.2", | ||
"@types/prettier": "~2.2.3", | ||
"@typescript-eslint/eslint-plugin": "~4.22.1", | ||
"@typescript-eslint/parser": "~4.22.1", | ||
"@types/node": "~15.12.2", | ||
"@types/prettier": "~2.3.0", | ||
"@typescript-eslint/eslint-plugin": "~4.26.1", | ||
"@typescript-eslint/parser": "~4.26.1", | ||
"benchmark": "~2.1.4", | ||
"eslint": "~7.25.0", | ||
"eslint": "~7.28.0", | ||
"eslint-config-prettier": "~8.3.0", | ||
"eslint-define-config": "~1.0.8", | ||
"eslint-plugin-inclusive-language": "~2.1.1", | ||
"eslint-plugin-jsdoc": "~33.1.0", | ||
"eslint-plugin-jsdoc": "~35.1.3", | ||
"eslint-plugin-prettier": "~3.4.0", | ||
"eslint-plugin-spellcheck": "~0.0.17", | ||
"jest": "~26.6.3", | ||
"jest-junit": "~12.0.0", | ||
"jest": "~27.0.4", | ||
"jest-junit": "~12.2.0", | ||
"np": "~7.5.0", | ||
"prettier": "2.2.1", | ||
"prettier-plugin-organize-imports": "~2.0.0", | ||
"ts-jest": "~26.5.6", | ||
"typescript": "~4.2.4", | ||
"prettier": "2.3.1", | ||
"prettier-plugin-organize-imports": "~2.1.0", | ||
"ts-jest": "~27.0.3", | ||
"typescript": "~4.3.2", | ||
"vuepress": "~1.8.2", | ||
"vuepress-theme-yuu": "~3.0.1" | ||
"vuepress-theme-yuu": "~3.1.1" | ||
}, | ||
@@ -66,0 +66,0 @@ "peerDependencies": { |
import type { | ||
AstPath, | ||
Doc, | ||
FastPath, | ||
Options, | ||
@@ -27,7 +27,7 @@ Parser, | ||
/** Fast path stack entry. */ | ||
type FastPathStackEntry = { | ||
/** Ast path stack entry. */ | ||
interface AstPathStackEntry { | ||
content: string; | ||
tokens: Token[]; | ||
}; | ||
} | ||
@@ -52,3 +52,3 @@ /** The plugin object that is picked up by prettier. */ | ||
pug: { | ||
parse(text: string, parsers: { [parserName: string]: Parser }, options: ParserOptions): FastPathStackEntry { | ||
parse(text: string, parsers: { [parserName: string]: Parser }, options: ParserOptions): AstPathStackEntry { | ||
logger.debug('[parsers:pug:parse]:', { text }); | ||
@@ -90,4 +90,4 @@ | ||
'pug-ast': { | ||
print(path: FastPath, options: ParserOptions & PugParserOptions, print: (path: FastPath) => Doc): Doc { | ||
const entry: FastPathStackEntry = path.stack[0]; | ||
print(path: AstPath, options: ParserOptions & PugParserOptions, print: (path: AstPath) => Doc): Doc { | ||
const entry: AstPathStackEntry = path.stack[0]; | ||
const { content, tokens } = entry; | ||
@@ -101,4 +101,4 @@ const pugOptions: PugPrinterOptions = convergeOptions(options); | ||
embed( | ||
path: FastPath, | ||
print: (path: FastPath) => Doc, | ||
path: AstPath, | ||
print: (path: AstPath) => Doc, | ||
textToDoc: (text: string, options: Options) => Doc, | ||
@@ -105,0 +105,0 @@ options: ParserOptions |
@@ -39,5 +39,9 @@ import type { ParserOptions } from 'prettier'; | ||
pugEmptyAttributesForceQuotes: options.pugEmptyAttributesForceQuotes, | ||
pugSingleFileComponentIndentation: options.pugSingleFileComponentIndentation && options.embeddedInHtml, | ||
pugSingleFileComponentIndentation: | ||
options.pugSingleFileComponentIndentation && | ||
(options.__embeddedInHtml || | ||
// @ts-expect-error: `embeddedInHtml` was removed in Prettier 2.3.0 | ||
options.embeddedInHtml), | ||
pugFramework: options.pugFramework | ||
}; | ||
} |
import type { BuiltInParserName, Options, RequiredOptions } from 'prettier'; | ||
import { format } from 'prettier'; | ||
import type { parsers as AngularParsers } from 'prettier/parser-angular'; | ||
import type { parsers as BabelParsers } from 'prettier/parser-babel'; | ||
import type { parsers as HtmlParsers } from 'prettier/parser-html'; | ||
import type { parsers as PostCssParsers } from 'prettier/parser-postcss'; | ||
import type { | ||
@@ -138,6 +142,8 @@ AndAttributesToken, | ||
/* eslint-disable @typescript-eslint/indent */ | ||
/** | ||
* Supported parsers for the `formatDelegatePrettier` function. | ||
*/ | ||
type FormatDelegatePrettierSupportedParser = | ||
type FormatDelegatePrettierSupportedParser = keyof Pick< | ||
typeof AngularParsers & typeof BabelParsers & typeof HtmlParsers & typeof PostCssParsers, | ||
| 'css' | ||
@@ -150,3 +156,5 @@ | 'vue' | ||
| '__ng_action' | ||
| '__ng_directive'; | ||
| '__ng_directive' | ||
>; | ||
/* eslint-enable @typescript-eslint/indent */ | ||
@@ -597,3 +605,3 @@ /** | ||
val: string, | ||
parser: '__ng_interpolation', // TODO: may be changed to allow a special parser for svelte | ||
parser: keyof Pick<typeof AngularParsers, '__ng_interpolation'>, // TODO: may be changed to allow a special parser for svelte | ||
[opening, closing]: ['{{', '}}'] | ['{', '}'] | ||
@@ -600,0 +608,0 @@ ): string { |
@@ -11,2 +11,3 @@ { | ||
"strict": true, | ||
"noImplicitOverride": true, | ||
"noUncheckedIndexedAccess": true, | ||
@@ -13,0 +14,0 @@ "removeComments": true |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
316089
19293
5291