Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/talltotal/eslint-plugin-vue-style-tag
ESLint plugin to require Vue style tags with scoped or module attribute.
https://github.com/talltotal/eslint-plugin-vue-style-tag
css-modules eslint-plugin scoped-css vue
Last synced: about 1 month ago
JSON representation
ESLint plugin to require Vue style tags with scoped or module attribute.
- Host: GitHub
- URL: https://github.com/talltotal/eslint-plugin-vue-style-tag
- Owner: talltotal
- License: mit
- Created: 2021-03-03T05:32:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-03T05:59:24.000Z (over 3 years ago)
- Last Synced: 2024-10-02T07:03:21.272Z (about 2 months ago)
- Topics: css-modules, eslint-plugin, scoped-css, vue
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-vue-style-tag
ESLint plugin to require Vue style tags with scoped or module attribute.
This rule was valid when the parser of eslint is `vue-eslint-parser@^7.0.0`.
Valid:
```html
```
```html
```
Invalid:
```html
```
## Installation
```
$ npm i eslint --save-dev
$ npm install eslint-plugin-vue-style-tag --save-dev
```## Usage
`.eslintrc.js`:
```js
{
parser: require.resolve('vue-eslint-parser'),
plugins: [
'vue-style-tag'
],
rules: {
'vue-style-tag/use-scoped-or-module': 'warn'
}
}
```