Skip to content

Commit 1cd5590

Browse files
committed
Fixed documents
1 parent 98fc0a3 commit 1cd5590

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

Diff for: docs/rules/comment-directive.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: support comment-directives in `<template>`
77
# vue/comment-directive
88
> support comment-directives in `<template>`
99
10-
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
10+
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-essential"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/recommended"` and `"plugin:vue/vue3-recommended"`.
1111

1212
Sole purpose of this rule is to provide `eslint-disable` functionality in `<template>`.
1313
It supports usage of the following comments:

Diff for: docs/rules/jsx-uses-vars.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: prevent variables used in JSX to be marked as unused
77
# vue/jsx-uses-vars
88
> prevent variables used in JSX to be marked as unused
99
10-
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
10+
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-essential"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/recommended"` and `"plugin:vue/vue3-recommended"`.
1111

1212
Since 0.17.0 the ESLint `no-unused-vars` rule does not detect variables used in JSX ([see details](https://eslint.org/blog/2015/03/eslint-0.17.0-released#changes-to-jsxreact-handling)).
1313
This rule will find variables used in JSX and mark them as used.

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
],
3333
"author": "Toru Nagashima (https://github.com/mysticatea)",
3434
"contributors": [
35-
"Michał Sajnóg <[email protected]> (https://github.com/michalsnik)"
35+
"Michał Sajnóg <[email protected]> (https://github.com/michalsnik)",
36+
"Yosuke Ota (https://github.com/ota-meshi)"
3637
],
3738
"license": "MIT",
3839
"repository": {

Diff for: tools/update-docs.js

+7-9
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,14 @@ function formatItems (items) {
4545
}
4646

4747
function getPresetIds (categoryIds) {
48-
const subsetCategoryIds = categoryIds
49-
.map(categoryId => {
50-
for (const subsetCategoryId in presetCategories) {
51-
if (presetCategories[subsetCategoryId] === categoryId) {
52-
return subsetCategoryId
53-
}
48+
const subsetCategoryIds = []
49+
for (const categoryId of categoryIds) {
50+
for (const subsetCategoryId in presetCategories) {
51+
if (presetCategories[subsetCategoryId] === categoryId) {
52+
subsetCategoryIds.push(subsetCategoryId)
5453
}
55-
return null
56-
})
57-
.filter(subsetCategoryId => !!subsetCategoryId)
54+
}
55+
}
5856
if (subsetCategoryIds.length === 0) {
5957
return categoryIds
6058
}

0 commit comments

Comments
 (0)