Skip to content

Commit

Permalink
docs: add rule no-property-in-node options
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Jun 25, 2024
1 parent 6cdef14 commit c2dc36d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/rules/no-property-in-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,33 @@ module.exports = {
},
};
```

## Options

<!-- begin auto-generated rule options list -->

| Name | Description | Type |
| :------------------------ | :----------------------------------------------------------------------------------- | :---- |
| `additionalNodeTypeFiles` | Any additional regular expressions to consider source files defining AST Node types. | Array |

<!-- end auto-generated rule options list -->

### `additionalNodeTypeFiles`

Here is an example of how the additionalNodeTypeFiles option can be configured in an ESLint configuration file:

```json
{
"rules": {
"eslint-plugin/no-property-in-node": [
"error",
{
"additionalNodeTypeFiles": [
"/packages[/\\]types[/\\]dist[/\\]generated[/\\]ast-spec.d.ts/",
"/custom/path/to/types/definition.d.ts/"
]
}
]
}
}
```

0 comments on commit c2dc36d

Please sign in to comment.