( filePath: string, )
| 244 | /* 9. Helper functions */ |
| 245 | /* ------------------------------------------------------------------ */ |
| 246 | export function findLanguageConfigByExtension( |
| 247 | filePath: string, |
| 248 | ): LanguageConfig | undefined { |
| 249 | const ext = path.extname(filePath) |
| 250 | return languageTable.find((c) => c.extensions.includes(ext)) |
| 251 | } |
| 252 | |
| 253 | /* ------------------------------------------------------------------ */ |
| 254 | /* 10. Language configuration loader */ |
no outgoing calls
no test coverage detected