You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create `.eslintrc.*` file to configure rules. See also: [http://eslint.org/docs/user-guide/configuring](http://eslint.org/docs/user-guide/configuring).
44
53
45
54
Example **.eslintrc.js**:
@@ -66,6 +75,8 @@ This plugin provides 3 predefined configs:
66
75
-`plugin:vue-scoped-css/recommended` - Above, plus rules for better ways to help you avoid problems
67
76
-`plugin:vue-scoped-css/all` - All rules of this plugin are included
68
77
78
+
<!--USAGE_SECTION_END-->
79
+
69
80
## Rules
70
81
71
82
<!--RULES_SECTION_START-->
@@ -74,42 +85,47 @@ The `--fix` option on the [command line](https://eslint.org/docs/user-guide/comm
74
85
75
86
<!--RULES_TABLE_START-->
76
87
77
-
### Base Rules (Enabling Plugin)
88
+
##Recommended
78
89
79
-
Enable this plugin using with:
90
+
Enforce all the rules in this category with:
80
91
81
92
```json
82
93
{
83
-
"extends": "plugin:vue-scoped-css/base"
94
+
"extends": "plugin:vue-scoped-css/recommended"
84
95
}
85
96
```
86
97
87
-
### Recommended
98
+
| Rule ID | Description ||
99
+
|:--------|:------------|:---|
100
+
|[vue-scoped-css/no-parsing-error](./no-parsing-error.md)| Disallow parsing errors in `<style>`||
101
+
|[vue-scoped-css/no-unused-keyframes](./no-unused-keyframes.md)| Reports the `@keyframes` is not used in Scoped CSS. ||
102
+
|[vue-scoped-css/no-unused-selector](./no-unused-selector.md)| Reports selectors defined in Scoped CSS not used in `<template>`. ||
103
+
|[vue-scoped-css/require-scoped](./require-scoped.md)| Enforce the `<style>` tags to has the `scoped` attribute. ||
||[vue-scoped-css/no-parsing-error](./docs/rules/no-parsing-error.md)| Disallow parsing errors in `<style>`|
100
-
||[vue-scoped-css/no-unused-keyframes](./docs/rules/no-unused-keyframes.md)| Reports the `@keyframes` is not used in Scoped CSS. |
101
-
||[vue-scoped-css/no-unused-selector](./docs/rules/no-unused-selector.md)| Reports selectors defined in Scoped CSS not used in `<template>`. |
102
-
||[vue-scoped-css/require-scoped](./docs/rules/require-scoped.md)| Enforce the `<style>` tags to has the `scoped` attribute. |
103
-
104
-
### Uncategorized
105
-
106
-
|| Rule ID | Description |
107
-
|:---|:--------|:------------|
108
-
||[vue-scoped-css/require-selector-used-inside](./docs/rules/require-selector-used-inside.md)| Reports the defined selectors is not used inside `<template>`. |
120
+
| Rule ID | Description ||
121
+
|:--------|:------------|:---|
122
+
|[vue-scoped-css/require-selector-used-inside](./require-selector-used-inside.md)| Reports the defined selectors is not used inside `<template>`. ||
109
123
110
124
<!--RULES_TABLE_END-->
111
125
<!--RULES_SECTION_END-->
112
126
127
+
<!--DOCS_IGNORE_START-->
128
+
113
129
## Contributing
114
130
115
131
Welcome contributing!
@@ -121,6 +137,8 @@ Please use GitHub's Issues/PRs.
121
137
-`npm test` runs tests and measures coverage.
122
138
-`npm run update` runs in order to update readme and recommended configuration.
123
139
140
+
<!--DOCS_IGNORE_END-->
141
+
124
142
## License
125
143
126
144
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).
Create `.eslintrc.*` file to configure rules. See also: [http://eslint.org/docs/user-guide/configuring](http://eslint.org/docs/user-guide/configuring).
36
-
37
-
Example **.eslintrc.js**:
38
-
39
-
```js
40
-
module.exports= {
41
-
extends: [
42
-
// add more generic rulesets here, such as:
43
-
// 'eslint:recommended',
44
-
'plugin:vue-scoped-css/recommended'
45
-
],
46
-
rules: {
47
-
// override/add rules settings here, such as:
48
-
// 'vue-scoped-css/no-unused-selector': 'error'
49
-
}
50
-
}
51
-
```
52
-
53
-
## Configs
54
-
55
-
This plugin provides 3 predefined configs:
56
-
57
-
-`plugin:vue-scoped-css/base` - Settings and rules to enable this plugin
58
-
-`plugin:vue-scoped-css/recommended` - Above, plus rules for better ways to help you avoid problems
59
-
-`plugin:vue-scoped-css/all` - All rules of this plugin are included
31
+
See [User Guide](./user-guide/README.md).
60
32
61
33
## Rules
62
34
63
-
[Available Rules](./rules/README.md).
64
-
65
-
## Contributing
66
-
67
-
Welcome contributing!
68
-
69
-
Please use GitHub's Issues/PRs.
70
-
71
-
### Development Tools
72
-
73
-
-`npm test` runs tests and measures coverage.
74
-
-`npm run update` runs in order to update readme and recommended configuration.
0 commit comments