MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / allowsJsx

Function allowsJsx

src/resolution/frameworks/react.ts:2083–2085  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

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

Callers 2

extractFunction · 0.85
tableRoutesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected