Skip to content

Commit eb6d0c6

Browse files
committed
Prefix eslintrc configs with vue2-
1 parent 159c877 commit eb6d0c6

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

docs/user-guide/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ You can use the following configs by adding them to `extends`.
139139
- `"plugin:vue/vue3-strongly-recommended"` ... Above, plus rules to considerably improve code readability and/or dev experience.
140140
- `"plugin:vue/vue3-recommended"` ... Above, plus rules to enforce subjective community defaults to ensure consistency.
141141
- Configurations for using Vue.js 2.x:
142-
- `"plugin:vue/essential"` ... `base`, plus rules to prevent errors or unintended behavior.
143-
- `"plugin:vue/strongly-recommended"` ... Above, plus rules to considerably improve code readability and/or dev experience.
144-
- `"plugin:vue/recommended"` ... Above, plus rules to enforce subjective community defaults to ensure consistency
142+
- `"plugin:vue/vue2-essential"` ... `base`, plus rules to prevent errors or unintended behavior.
143+
- `"plugin:vue/vue2-strongly-recommended"` ... Above, plus rules to considerably improve code readability and/or dev experience.
144+
- `"plugin:vue/vue2-recommended"` ... Above, plus rules to enforce subjective community defaults to ensure consistency
145145

146146
:::warning Reporting rules
147147
By default, all rules from **base** and **essential** categories report ESLint errors. Other rules - because they're not covering potential bugs in the application - report warnings. What does it mean? By default - nothing, but if you want - you can set up a threshold and break the build after a certain amount of warnings, instead of any. More information [here](https://eslint.org/docs/user-guide/command-line-interface#handling-warnings).

lib/index.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ declare const vue: {
55
configs: {
66
base: Linter.LegacyConfig
77

8-
essential: Linter.LegacyConfig
9-
'strongly-recommended': Linter.LegacyConfig
10-
recommended: Linter.LegacyConfig
8+
'vue2-essential': Linter.LegacyConfig
9+
'vue2-strongly-recommended': Linter.LegacyConfig
10+
'vue2-recommended': Linter.LegacyConfig
1111

1212
'vue3-essential': Linter.LegacyConfig
1313
'vue3-strongly-recommended': Linter.LegacyConfig

lib/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const plugin = {
1111
// eslintrc configs
1212
base: require('./configs/base'),
1313

14-
essential: require('./configs/vue2-essential'),
15-
'strongly-recommended': require('./configs/vue2-strongly-recommended'),
16-
recommended: require('./configs/vue2-recommended'),
14+
'vue2-essential': require('./configs/vue2-essential'),
15+
'vue2-strongly-recommended': require('./configs/vue2-strongly-recommended'),
16+
'vue2-recommended': require('./configs/vue2-recommended'),
1717

1818
'vue3-essential': require('./configs/vue3-essential'),
1919
'vue3-strongly-recommended': require('./configs/vue3-strongly-recommended'),

tools/lib/categories.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,23 @@ const CONFIG_NAME_CAPTIONS = {
5959
'*.configs["flat/essential"]'
6060
],
6161
'vue2-essential': [
62-
'"plugin:vue/essential"',
62+
'"plugin:vue/vue2-essential"',
6363
'*.configs["flat/vue2-essential"]'
6464
],
6565
'vue3-strongly-recommended': [
6666
'"plugin:vue/vue3-strongly-recommended"',
6767
'*.configs["flat/strongly-recommended"]'
6868
],
6969
'vue2-strongly-recommended': [
70-
'"plugin:vue/strongly-recommended"',
70+
'"plugin:vue/vue2-strongly-recommended"',
7171
'*.configs["flat/vue2-strongly-recommended"]'
7272
],
7373
'vue3-recommended': [
7474
'"plugin:vue/vue3-recommended"',
7575
'*.configs["flat/recommended"]'
7676
],
7777
'vue2-recommended': [
78-
'"plugin:vue/recommended"',
78+
'"plugin:vue/vue2-recommended"',
7979
'*.configs["flat/vue2-recommended"]'
8080
]
8181
}

tools/update-lib-index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const plugin = {
2929
// eslintrc configs
3030
base: require('./configs/base'),
3131
32-
essential: require('./configs/vue2-essential'),
33-
'strongly-recommended': require('./configs/vue2-strongly-recommended'),
34-
recommended: require('./configs/vue2-recommended'),
32+
'vue2-essential': require('./configs/vue2-essential'),
33+
'vue2-strongly-recommended': require('./configs/vue2-strongly-recommended'),
34+
'vue2-recommended': require('./configs/vue2-recommended'),
3535
3636
'vue3-essential': require('./configs/vue3-essential'),
3737
'vue3-strongly-recommended': require('./configs/vue3-strongly-recommended'),

0 commit comments

Comments
 (0)