Skip to content

Commit

Permalink
docs(check-tag-names): minor doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Apr 10, 2023
1 parent cebf94f commit 47559e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
8 changes: 3 additions & 5 deletions .README/rules/check-tag-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ The format is as follows:

Set to `false` to disable auto-removal of types that are redundant with the [`typed` option](#typed).

#### `jsxTags`
##### `jsxTags`

If this is set to `true`, all of the following tags used to control JSX output are allowed:

Expand All @@ -204,7 +204,7 @@ jsxRuntime

For more information, see the [babel documentation](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx).

#### `typed`
##### `typed`

If this is set to `true`, additionally checks for tag names that are redundant when using a type checker such as TypeScript.

Expand Down Expand Up @@ -259,14 +259,12 @@ static
this
```

Additionally, for `@param` and `@return` tags, the rule will flag unnecessary type descriptions (e.g. `@param {string}`).

|||
|---|---|
|Context|everywhere|
|Tags|N/A|
|Recommended|true|
|Options|`definedTags`|
|Options|`definedTags`, `enableFixer`, `jsxTags`, `typed`|
|Settings|`tagNamePreference`, `mode`|

<!-- assertions checkTagNames -->
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4492,9 +4492,9 @@ The format is as follows:

Set to `false` to disable auto-removal of types that are redundant with the [`typed` option](#user-content-typed).

<a name="user-content-eslint-plugin-jsdoc-rules-check-tag-names-jsxtags"></a>
<a name="eslint-plugin-jsdoc-rules-check-tag-names-jsxtags"></a>
#### <code>jsxTags</code>
<a name="user-content-eslint-plugin-jsdoc-rules-check-tag-names-options-6-jsxtags"></a>
<a name="eslint-plugin-jsdoc-rules-check-tag-names-options-6-jsxtags"></a>
##### <code>jsxTags</code>

If this is set to `true`, all of the following tags used to control JSX output are allowed:

Expand All @@ -4507,9 +4507,9 @@ jsxRuntime

For more information, see the [babel documentation](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx).

<a name="user-content-eslint-plugin-jsdoc-rules-check-tag-names-typed"></a>
<a name="eslint-plugin-jsdoc-rules-check-tag-names-typed"></a>
#### <code>typed</code>
<a name="user-content-eslint-plugin-jsdoc-rules-check-tag-names-options-6-typed"></a>
<a name="eslint-plugin-jsdoc-rules-check-tag-names-options-6-typed"></a>
##### <code>typed</code>

If this is set to `true`, additionally checks for tag names that are redundant when using a type checker such as TypeScript.

Expand Down Expand Up @@ -4564,14 +4564,12 @@ static
this
```

Additionally, for `@param` and `@return` tags, the rule will flag unnecessary type descriptions (e.g. `@param {string}`).

|||
|---|---|
|Context|everywhere|
|Tags|N/A|
|Recommended|true|
|Options|`definedTags`|
|Options|`definedTags`, `enableFixer`, `jsxTags`, `typed`|
|Settings|`tagNamePreference`, `mode`|

The following patterns are considered problems:
Expand Down

0 comments on commit 47559e6

Please sign in to comment.