New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-vue-pug-sfc

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-vue-pug-sfc

eslint plugin vue pug sfc

  • 1.0.0-alpha.20
  • alpha
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-65.38%
Maintainers
1
Weekly downloads
 
Created
Source

     Eslint           Vue           Pug     

Eslint Plugin Vue Pug SFC

license: MIT NPM package downloads Code Style: Prettier Build Status

Intro

This plugin tries to support all the template related rules from eslint-plugin-vue for Pug in .vue files.
It does NOT replace eslint-plugin-vue!


Getting started

npm add --save-dev eslint-plugin-vue-pug-sfc
#or
yarn add --dev eslint-plugin-vue-pug-sfc
#or
pnpm add --save-dev eslint-plugin-vue-pug-sfc

Make sure you also installed eslint and eslint-plugin-vue.

Usage

In eslint config:

{
  "plugins": [
    // Still configure eslint-plugin-vue, because you want also lint parts like `<script>`.
    "vue",
    // Now configure eslint-plugin-vue-pug-sfc.
    "vue-pug-sfc"
  ],
  "rules": {
    "vue-pug-sfc/this-in-template": "warn"
  }
}

or via extends:

{
  "extends": ["plugin:vue/recommended", "plugin:vue-pug-sfc/recommended"]
}

Please note that the vue-pug-sfc plugin has no access to vue configuration, so you need to configure it additionally.

Motivation

Keywords

FAQs

Package last updated on 06 Jan 2022

Did you know?

Socket

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.

Install

Related posts

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