0.0.1 ⢠Published 5 years ago
eslint-plugin-vue-scoped-style-tags v0.0.1
eslint-plugin-vue-scoped-style-tags
ESLint rule plugin to require Vue scoped style tags.
Installation
yarn add -D eslint-plugin-vue-scoped-style-tags
Usage
.eslintrc.js
:
module.exports = {
plugins: [
'vue-scoped-style-tags',
],
rules: {
'vue-scoped-style-tags': 'error',
},
};
Options:
always
never
$(yarn bin)/eslint --ext .vue
Examples
Invalid .vue
File:
<template>
š„
</template>
<style>
body {
background-color: red;
}
</style>
Valid .vue
File:
<template>
š„
</template>
<style scoped>
body {
background-color: red;
}
</style>
License
MIT
0.0.1
5 years ago