Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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'
}
}
```