epv
eslint-plugin-vue-pug-sfc
npm i eslint-plugin-vue-pug-sfc
Deprecated!
Please use @rashfael new package eslint-plugin-vue-pug instead.
epv

eslint-plugin-vue-pug-sfc

eslint plugin vue pug sfc

by Shinigami

1.0.0-alpha.20 (see all)License:MITTypeScript:Not Found
npm i eslint-plugin-vue-pug-sfc
Readme

     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

Downloads/wk

332

GitHub Stars

33

LAST COMMIT

2mos ago

MAINTAINERS

1

CONTRIBUTORS

4

OPEN ISSUES

95

OPEN PRs

10
VersionTagPublished
1.0.0-alpha.20
latest
6mos ago
1.0.0-alpha.20
alpha
6mos ago
No alternatives found
No tutorials found
Add a tutorial