0.0.1 • Published 5 years ago

eslint-plugin-vue-scoped-style-tags v0.0.1

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
5 years ago

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