Added python prettier plugin

This commit is contained in:
2025-09-19 19:35:48 +08:00
parent f72010bd69
commit c9379f0edb
8 changed files with 682 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ import clojurePrettierPlugin from "@cospaia/prettier-plugin-clojure";
import groovyPrettierPlugin from "@/common/prettier/plugins/groovy";
import scalaPrettierPlugin from "@/common/prettier/plugins/scala";
import clangPrettierPlugin from "@/common/prettier/plugins/clang";
import pythonPrettierPlugin from "@/common/prettier/plugins/python";
import * as prettierPluginEstree from "prettier/plugins/estree";
/**
@@ -74,7 +75,10 @@ export const LANGUAGES: LanguageInfo[] = [
parser: "json",
plugins: [babelPrettierPlugin, prettierPluginEstree]
}),
new LanguageInfo("py", "Python", pythonLanguage.parser),
new LanguageInfo("py", "Python", pythonLanguage.parser,{
parser: "python",
plugins: [pythonPrettierPlugin]
}),
new LanguageInfo("html", "HTML", htmlLanguage.parser, {
parser: "html",
plugins: [htmlPrettierPlugin]