
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
prettier-plugin-vue
Advanced tools
A Prettier plugin that extends default Vue files formatting with additional options.
A lightweight plugin that allows Prettier to ignore certain blocks of Vue Single File Components (SFCs) independently of the IDE and its plugins. This can be useful if you want to setup Prettier in combination with other linters such as eslint
or stylelint
.
To get started, just install prettier-plugin-vue as a dev-dependency:
npm install prettier prettier-plugin-vue --save-dev
This plugin follows Prettier’s autoloading convention, so as long as you’ve got Prettier set up in your project, it’ll start working automatically as soon as it’s installed.
Note that plugin autoloading is not supported when using certain package managers, such as pnpm or Yarn PnP. In this case you may need to add the plugin to your Prettier config explicitly:
// prettier.config.js
module.exports = {
plugins: [require('prettier-plugin-vue')],
}
Allows you to specify a list of blocks strings
to ignore while formatting Vue SFC files.
Default | CLI Override | API Override |
---|---|---|
['style'] | --vue-exclude-blocks <string> | vueExcludeBlocks: <string> |
Note that by default this plugin ignores <style>
blocks to avoid interfering with stylelint.
.prettierrc
{
vueExcludeBlocks: ["style", "template"]
}
FAQs
A Prettier plugin that extends default Vue files formatting with additional options.
The npm package prettier-plugin-vue receives a total of 0 weekly downloads. As such, prettier-plugin-vue popularity was classified as not popular.
We found that prettier-plugin-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.