Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 86fab9b

Browse files
docs: fix old config names (#2709)
1 parent 698f240 commit 86fab9b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎docs/user-guide/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ module.exports = {
166166
extends: [
167167
// add more generic rulesets here, such as:
168168
// 'eslint:recommended',
169-
'plugin:vue/vue3-recommended',
170-
// 'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
169+
'plugin:vue/recommended',
170+
// 'plugin:vue/vue2-recommended' // Use this if you are using Vue.js 2.x.
171171
],
172172
rules: {
173173
// override/add rules settings here, such as:
@@ -185,13 +185,13 @@ You can use the following configs by adding them to `extends`.
185185

186186
- `"plugin:vue/base"` ... Settings and rules to enable correct ESLint parsing.
187187
- Configurations for using Vue.js 3.x:
188-
- `"plugin:vue/vue3-essential"` ... `base`, plus rules to prevent errors or unintended behavior.
189-
- `"plugin:vue/vue3-strongly-recommended"` ... Above, plus rules to considerably improve code readability and/or dev experience.
190-
- `"plugin:vue/vue3-recommended"` ... Above, plus rules to enforce subjective community defaults to ensure consistency.
191-
- Configurations for using Vue.js 2.x:
192188
- `"plugin:vue/essential"` ... `base`, plus rules to prevent errors or unintended behavior.
193189
- `"plugin:vue/strongly-recommended"` ... Above, plus rules to considerably improve code readability and/or dev experience.
194-
- `"plugin:vue/recommended"` ... Above, plus rules to enforce subjective community defaults to ensure consistency
190+
- `"plugin:vue/recommended"` ... Above, plus rules to enforce subjective community defaults to ensure consistency.
191+
- Configurations for using Vue.js 2.x:
192+
- `"plugin:vue/vue2-essential"` ... `base`, plus rules to prevent errors or unintended behavior.
193+
- `"plugin:vue/vue2-strongly-recommended"` ... Above, plus rules to considerably improve code readability and/or dev experience.
194+
- `"plugin:vue/vue2-recommended"` ... Above, plus rules to enforce subjective community defaults to ensure consistency.
195195

196196
:::warning Reporting rules
197197
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).
@@ -264,7 +264,7 @@ Full example:
264264
"extends": [
265265
"eslint:recommended",
266266
"plugin:@typescript-eslint/recommended",
267-
"plugin:vue/vue3-recommended"
267+
"plugin:vue/recommended"
268268
],
269269
"parser": "vue-eslint-parser",
270270
"parserOptions": {
@@ -436,7 +436,7 @@ Most `eslint-plugin-vue` rules require `vue-eslint-parser` to check `<template>`
436436

437437
Make sure you have one of the following settings in your **.eslintrc**:
438438

439-
- `"extends": ["plugin:vue/vue3-recommended"]`
439+
- `"extends": ["plugin:vue/recommended"]`
440440
- `"extends": ["plugin:vue/base"]`
441441

442442
If you already use another parser (e.g. `"parser": "@typescript-eslint/parser"`), please move it into `parserOptions`, so it doesn't collide with the `vue-eslint-parser` used by this plugin's configuration:
@@ -482,7 +482,7 @@ module.exports = {
482482
// ...
483483
// 'eslint:recommended',
484484
// ...
485-
'plugin:vue/vue3-recommended',
485+
'plugin:vue/recommended',
486486
// ...
487487
'prettier'
488488
// Make sure "prettier" is the last element in this list.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /