You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/parser/README.md
+15-4
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ interface ParserOptions {
54
54
jsx?:boolean;
55
55
};
56
56
project?:string|string[];
57
+
projectFolderIgnoreList?: (string|RegExp)[];
57
58
tsconfigRootDir?:string;
58
59
extraFileExtensions?:string[];
59
60
warnOnUnsupportedTypeScriptVersion?:boolean;
@@ -118,26 +119,36 @@ This option allows you to provide a path to your project's `tsconfig.json`. **Th
118
119
}
119
120
```
120
121
121
-
### `tsconfigRootDir`
122
+
### `parserOptions.tsconfigRootDir`
122
123
123
124
Default `undefined`.
124
125
125
126
This option allows you to provide the root directory for relative tsconfig paths specified in the `project` option above.
126
127
127
-
### `extraFileExtensions`
128
+
### `parserOptions.projectFolderIgnoreList`
129
+
130
+
Default `["/node_modules/"]`.
131
+
132
+
This option allows you to ignore folders from being included in your provided list of `project`s.
133
+
Any resolved project path that matches one or more of the provided regular expressions will be removed from the list.
134
+
This is useful if you have configured glob patterns, but want to make sure you ignore certain folders.
135
+
136
+
For example, by default it will ensure that a glob like `./**/tsconfig.json` will not match any `tsconfig`s within your `node_modules` folder (some npm packages do not exclude their source files from their published packages).
137
+
138
+
### `parserOptions.extraFileExtensions`
128
139
129
140
Default `undefined`.
130
141
131
142
This option allows you to provide one or more additional file extensions which should be considered in the TypeScript Program compilation.
132
143
The default extensions are `.ts`, `.tsx`, `.js`, and `.jsx`. Add extensions starting with `.`, followed by the file extension. E.g. for a `.vue` file use `"extraFileExtensions: [".vue"]`.
0 commit comments