Skip to content

Commit

Permalink
Fixed documents
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 14, 2020
1 parent 98fc0a3 commit 1cd5590
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/rules/comment-directive.md
Expand Up @@ -7,7 +7,7 @@ description: support comment-directives in `<template>`
# vue/comment-directive
> support comment-directives in `<template>`
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
- :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"`.

Sole purpose of this rule is to provide `eslint-disable` functionality in `<template>`.
It supports usage of the following comments:
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/jsx-uses-vars.md
Expand Up @@ -7,7 +7,7 @@ description: prevent variables used in JSX to be marked as unused
# vue/jsx-uses-vars
> prevent variables used in JSX to be marked as unused
- :gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
- :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"`.

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)).
This rule will find variables used in JSX and mark them as used.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -32,7 +32,8 @@
],
"author": "Toru Nagashima (https://github.com/mysticatea)",
"contributors": [
"Michał Sajnóg <msajnog93@gmail.com> (https://github.com/michalsnik)"
"Michał Sajnóg <msajnog93@gmail.com> (https://github.com/michalsnik)",
"Yosuke Ota (https://github.com/ota-meshi)"
],
"license": "MIT",
"repository": {
Expand Down
16 changes: 7 additions & 9 deletions tools/update-docs.js
Expand Up @@ -45,16 +45,14 @@ function formatItems (items) {
}

function getPresetIds (categoryIds) {
const subsetCategoryIds = categoryIds
.map(categoryId => {
for (const subsetCategoryId in presetCategories) {
if (presetCategories[subsetCategoryId] === categoryId) {
return subsetCategoryId
}
const subsetCategoryIds = []
for (const categoryId of categoryIds) {
for (const subsetCategoryId in presetCategories) {
if (presetCategories[subsetCategoryId] === categoryId) {
subsetCategoryIds.push(subsetCategoryId)
}
return null
})
.filter(subsetCategoryId => !!subsetCategoryId)
}
}
if (subsetCategoryIds.length === 0) {
return categoryIds
}
Expand Down

0 comments on commit 1cd5590

Please sign in to comment.