(filePath: string)
| 2081 | } |
| 2082 | |
| 2083 | function allowsJsx(filePath: string): boolean { |
| 2084 | return !/\.(?:ts|mts|cts)$/.test(filePath); |
| 2085 | } |
| 2086 | |
| 2087 | function scriptLanguage(filePath: string): Language { |
| 2088 | return /\.tsx$/.test(filePath) ? 'tsx' : /\.[cm]?ts$/.test(filePath) ? 'typescript' : /\.jsx$/.test(filePath) ? 'jsx' : 'javascript'; |
no outgoing calls
no test coverage detected