|
146 | 146 | * FileType#HTML} (currently ".htm", ".html", ".xhtm", ".xhtml", ".vue"). |
147 | 147 | * <li>All YAML files, that is, files with one of the extensions supported by {@link |
148 | 148 | * FileType#YAML} (currently ".raml", ".yaml", ".yml"). |
149 | | - * <li>Files with base name "package.json". |
| 149 | + * <li>Files with base name "package.json" or "tsconfig.json", and files whose base name |
| 150 | + * is of the form "codeql-javascript-*.json". |
150 | 151 | * <li>JavaScript, JSON or YAML files whose base name starts with ".eslintrc". |
151 | 152 | * <li>All extension-less files. |
152 | 153 | * </ul> |
@@ -402,10 +403,12 @@ private void setupFilters() { |
402 | 403 | for (FileType filetype : defaultExtract) |
403 | 404 | for (String extension : filetype.getExtensions()) patterns.add("**/*" + extension); |
404 | 405 |
|
405 | | - // include .eslintrc files, package.json files, and tsconfig.json files |
| 406 | + // include .eslintrc files, package.json files, tsconfig.json files, and |
| 407 | + // codeql-javascript-*.json files |
406 | 408 | patterns.add("**/.eslintrc*"); |
407 | 409 | patterns.add("**/package.json"); |
408 | 410 | patterns.add("**/tsconfig.json"); |
| 411 | + patterns.add("**/codeql-javascript-*.json"); |
409 | 412 |
|
410 | 413 | // include any explicitly specified extensions |
411 | 414 | for (String extension : fileTypes.keySet()) patterns.add("**/*" + extension); |
|
0 commit comments