Skip to content

Commit 82c9f81

Browse files
authored
Change preset config (#169)
1 parent c6af641 commit 82c9f81

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Enforce all the rules in this category with:
9999

100100
| Rule ID | Description | |
101101
|:--------|:------------|:---|
102+
| [vue-scoped-css/enforce-style-type](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/enforce-style-type.html) | enforce the `<style>` tags to be plain or have the `scoped` or `module` attribute | |
102103
| [vue-scoped-css/no-deprecated-deep-combinator](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-deprecated-deep-combinator.html) | disallow using deprecated deep combinators | :wrench: |
103104
| [vue-scoped-css/no-parent-of-v-global](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-parent-of-v-global.html) | disallow parent selector for `::v-global` pseudo-element | |
104105
| [vue-scoped-css/no-parsing-error](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-parsing-error.html) | disallow parsing errors in `<style>` | |
@@ -120,6 +121,7 @@ Enforce all the rules in this category with:
120121

121122
| Rule ID | Description | |
122123
|:--------|:------------|:---|
124+
| [vue-scoped-css/enforce-style-type](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/enforce-style-type.html) | enforce the `<style>` tags to be plain or have the `scoped` or `module` attribute | |
123125
| [vue-scoped-css/no-parsing-error](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-parsing-error.html) | disallow parsing errors in `<style>` | |
124126
| [vue-scoped-css/no-unused-keyframes](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-unused-keyframes.html) | disallow `@keyframes` which don't use in Scoped CSS | |
125127
| [vue-scoped-css/no-unused-selector](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-unused-selector.html) | disallow selectors defined in Scoped CSS that don't use in `<template>` | |
@@ -134,14 +136,13 @@ For example:
134136
```json
135137
{
136138
"rules": {
137-
"vue-scoped-css/enforce-style-type": "error"
139+
"vue-scoped-css/no-deprecated-v-enter-v-leave-class": "error"
138140
}
139141
}
140142
```
141143

142144
| Rule ID | Description | |
143145
|:--------|:------------|:---|
144-
| [vue-scoped-css/enforce-style-type](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/enforce-style-type.html) | enforce the `<style>` tags to be plain or have the `scoped` or `module` attribute | |
145146
| [vue-scoped-css/no-deprecated-v-enter-v-leave-class](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-deprecated-v-enter-v-leave-class.html) | disallow v-enter and v-leave classes. | |
146147
| [vue-scoped-css/require-selector-used-inside](https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/require-selector-used-inside.html) | disallow selectors defined that is not used inside `<template>` | |
147148

docs/rules/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Enforce all the rules in this category with:
1818

1919
| Rule ID | Description | |
2020
|:--------|:------------|:---|
21+
| [vue-scoped-css/enforce-style-type](./enforce-style-type.md) | enforce the `<style>` tags to be plain or have the `scoped` or `module` attribute | |
2122
| [vue-scoped-css/no-deprecated-deep-combinator](./no-deprecated-deep-combinator.md) | disallow using deprecated deep combinators | :wrench: |
2223
| [vue-scoped-css/no-parent-of-v-global](./no-parent-of-v-global.md) | disallow parent selector for `::v-global` pseudo-element | |
2324
| [vue-scoped-css/no-parsing-error](./no-parsing-error.md) | disallow parsing errors in `<style>` | |
@@ -39,6 +40,7 @@ Enforce all the rules in this category with:
3940

4041
| Rule ID | Description | |
4142
|:--------|:------------|:---|
43+
| [vue-scoped-css/enforce-style-type](./enforce-style-type.md) | enforce the `<style>` tags to be plain or have the `scoped` or `module` attribute | |
4244
| [vue-scoped-css/no-parsing-error](./no-parsing-error.md) | disallow parsing errors in `<style>` | |
4345
| [vue-scoped-css/no-unused-keyframes](./no-unused-keyframes.md) | disallow `@keyframes` which don't use in Scoped CSS | |
4446
| [vue-scoped-css/no-unused-selector](./no-unused-selector.md) | disallow selectors defined in Scoped CSS that don't use in `<template>` | |
@@ -53,14 +55,13 @@ For example:
5355
```json
5456
{
5557
"rules": {
56-
"vue-scoped-css/enforce-style-type": "error"
58+
"vue-scoped-css/no-deprecated-v-enter-v-leave-class": "error"
5759
}
5860
}
5961
```
6062

6163
| Rule ID | Description | |
6264
|:--------|:------------|:---|
63-
| [vue-scoped-css/enforce-style-type](./enforce-style-type.md) | enforce the `<style>` tags to be plain or have the `scoped` or `module` attribute | |
6465
| [vue-scoped-css/no-deprecated-v-enter-v-leave-class](./no-deprecated-v-enter-v-leave-class.md) | disallow v-enter and v-leave classes. | |
6566
| [vue-scoped-css/require-selector-used-inside](./require-selector-used-inside.md) | disallow selectors defined that is not used inside `<template>` | |
6667

docs/rules/enforce-style-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: "enforce the `<style>` tags to be plain or have the `scoped` or `mo
88

99
> enforce the `<style>` tags to be plain or have the `scoped` or `module` attribute
1010
11-
- :gear: This rule is included in `"plugin:vue-scoped-css/all"`.
11+
- :gear: This rule is included in all of `"plugin:vue-scoped-css/recommended"`, `"plugin:vue-scoped-css/vue3-recommended"` and `"plugin:vue-scoped-css/all"`.
1212

1313
## :book: Rule Details
1414

lib/rules/enforce-style-type.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ module.exports = {
1919
docs: {
2020
description:
2121
"enforce the `<style>` tags to be plain or have the `scoped` or `module` attribute",
22-
// It will be changed to recommended in the major version upgrade.
23-
// categories: ["recommended", "vue3-recommended"],
24-
categories: [],
22+
categories: ["recommended", "vue3-recommended"],
2523
default: "warn",
2624
url: "https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/enforce-style-type.html",
2725
suggestion: true,

0 commit comments

Comments
 (0)