Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prettier/plugin-pug

Package Overview
Dependencies
Maintainers
12
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prettier/plugin-pug - npm Package Versions

1
11

1.10.1

Diff

Changelog

Source

1.10.1

diff

  • Fix handling of initial indentation for pugSingleFileComponentIndentation ([#145])
  • Fix bracket interpolation in combination with pugSingleFileComponentIndentation ([#148])
  • Do not wrap attributes in enclosed code interpolation ([#149])
  • Print warning for parsed object shorthand notation ([#147])
  • Add 'pug' to vscodeLanguageIds ([#150])
shinigami92
published 1.10.0 •

Changelog

Source

1.10.0

diff

  • Implement pugEmptyAttributes and pugEmptyAttributesForceQuotes option ([#128])
  • Improve warning message ([#143], [c0319bf])
shinigami92
published 1.9.0 •

Changelog

Source

1.9.0

diff

  • Support indentation for SFC ([#140])
  • Fix issues with plain-text and nesting ([#138])
shinigami92
published 1.8.1 •

Changelog

Source

1.8.1

diff

  • Improve conversion of tags to literals ([#133])
  • Handle plain-text tokens after outdent ([#135])
shinigami92
published 1.8.0 •

Changelog

Source

1.8.0

diff

  • Implement pugWrapAttributesThreshold option ([#118])
  • Implement pugWrapAttributesPattern option ([#126])
  • Support //- prettier-ignore comments inside pug templates ([#125])
  • Add middle attributes sorting ([#120])
  • Fix counting of current line-length ([#121])
  • Fix handling of literal attributes ([#130])
  • Add @lehni and @SkyaTura as contributors
shinigami92
published 1.7.0 •

Changelog

Source

1.7.0

diff

  • Support sorting of attributes with pugSortAttributesBeginning and pugSortAttributesEnd ([#22])
    Example
    This feature was planned since 1.2.0, but it was always a bit unstable and opinionated.
    If there are any bugs, please report them.
  • Pass more prettier code-interpolation options ([#117])
  • Allow "none" as an option for attributeSeparator ([#102])
  • Improve warning message ([03777f5])
shinigami92
published 1.7.0-sorting-feature.1 •

shinigami92
published 1.6.1 •

Changelog

Source

1.6.1

diff

  • Fix wrapped attribute multiline code indentation ([5a6082c])
shinigami92
published 1.6.0 •

Changelog

Source

1.6.0

diff

Big Change

This plugin now supports alias options!
You can configure pug embedded in vue with them :tada:

So instead of

{
  "singleQuote": true,
  "overrides": [
    {
      "files": ["*.pug"],
      "options": {
        "singleQuote": false
      }
    }
  ]
}

you can now write

{
  "singleQuote": true,
  "pugSingleQuote": false
}

Aliases added for:

  • pugPrintWidth
  • pugSingleQuote
  • pugTabWidth
  • pugUseTabs
  • pugBracketSpacing
  • pugSemi

Because prettier currently have something like a bug, you need to set e.g. "pugSingleQuote": "true" instead of "pugSingleQuote": true, if you want to set it to true
This needs to be done only for boolean true values

If an alias is not set, the plugin will fallback to the non alias version
And in the special case of singleQuote option will take the inverse as before
So no breaking changes are introduced

Other Changes

  • Fix escape id for complex id values ([559ee6d])
  • Fix indentation of objects in multiline class attributes ([#110])
shinigami92
published 1.6.0-issue-105.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc