1.0.0-alpha.20 • Published 2 years ago
eslint-plugin-vue-pug-sfc v1.0.0-alpha.20
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
1.0.0-alpha.19
2 years ago
1.0.0-alpha.20
2 years ago
1.0.0-alpha.18
2 years ago
1.0.0-alpha.16
3 years ago
1.0.0-alpha.15
3 years ago
1.0.0-alpha.17
3 years ago
1.0.0-alpha.12
3 years ago
1.0.0-alpha.14
3 years ago
1.0.0-alpha.13
3 years ago
1.0.0-alpha.11
3 years ago
1.0.0-alpha.10
3 years ago
1.0.0-alpha.9
3 years ago
1.0.0-alpha.7
3 years ago
1.0.0-alpha.6
3 years ago
1.0.0-alpha.8
3 years ago
1.0.0-alpha.5
3 years ago
1.0.0-alpha.4
3 years ago
1.0.0-alpha.3
3 years ago
1.0.0-alpha.2
3 years ago
1.0.0-alpha.1
3 years ago