File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -54,3 +54,33 @@ module.exports = {
5454 },
5555};
5656```
57+
58+ ## Options
59+
60+ <!-- begin auto-generated rule options list -->
61+
62+ | Name | Description | Type |
63+ | :------------------------ | :----------------------------------------------------------------------------------- | :---- |
64+ | ` additionalNodeTypeFiles ` | Any additional regular expressions to consider source files defining AST Node types. | Array |
65+
66+ <!-- end auto-generated rule options list -->
67+
68+ ### ` additionalNodeTypeFiles `
69+
70+ Here is an example of how the additionalNodeTypeFiles option can be configured in an ESLint configuration file:
71+
72+ ``` json
73+ {
74+ "rules" : {
75+ "eslint-plugin/no-property-in-node" : [
76+ " error" ,
77+ {
78+ "additionalNodeTypeFiles" : [
79+ " /packages[/\\ ]types[/\\ ]dist[/\\ ]generated[/\\ ]ast-spec.d.ts/" ,
80+ " /custom/path/to/types/definition.d.ts/"
81+ ]
82+ }
83+ ]
84+ }
85+ }
86+ ```
You can’t perform that action at this time.
0 commit comments