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

Function allowsJsx

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

Source from the content-addressed store, hash-verified

2059}
2060
2061function allowsJsx(filePath: string): boolean {
2062 return !/\.(?:ts|mts|cts)$/.test(filePath);
2063}
2064
2065function scriptLanguage(filePath: string): Language {
2066 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