MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getParserForMode

Function getParserForMode

src/lib/prettierFormatter.js:115–120  ·  view source on GitHub ↗
(modeName)

Source from the content-addressed store, hash-verified

113}
114
115function getParserForMode(modeName) {
116 if (MODE_TO_PARSER[modeName]) return MODE_TO_PARSER[modeName];
117 if (modeName.includes("javascript")) return "babel";
118 if (modeName.includes("typescript")) return "typescript";
119 return null;
120}
121
122async function resolvePrettierConfig(file) {
123 const overrides = appSettings?.value?.prettier || {};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected