Skip to content

Commit

Permalink
feat: add malva, markup_fmt and pretty_yaml (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane authored Jul 11, 2024
1 parent c9f3d72 commit fd8249f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
41 changes: 41 additions & 0 deletions info.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,47 @@
"ipynb"
],
"configExcludes": []
},
{
"name": "g-plane/malva",
"selected": true,
"configKey": "malva",
"fileExtensions": [
"css",
"scss",
"sass",
"less"
],
"configExcludes": [
"**/node_modules"
]
},
{
"name": "g-plane/markup_fmt",
"selected": true,
"configKey": "markup",
"fileExtensions": [
"html",
"vue",
"svelte",
"astro",
"jinja",
"jinja2",
"twig",
"njk",
"vto"
],
"configExcludes": []
},
{
"name": "g-plane/pretty_yaml",
"selected": true,
"configKey": "yaml",
"fileExtensions": [
"yaml",
"yml"
],
"configExcludes": []
}
]
}
5 changes: 4 additions & 1 deletion readInfoFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export async function readInfoFile(): Promise<Readonly<PluginsData>> {
async function getLatest(latest: Readonly<PluginData>[]) {
const results = [];
for (const plugin of latest) {
const info = await getLatestInfo("dprint", plugin.name);
const [username, pluginName] = plugin.name.split("/");
const info = pluginName
? await getLatestInfo(username, pluginName)
: await getLatestInfo("dprint", plugin.name);
if (info != null) {
results.push({
...plugin,
Expand Down

0 comments on commit fd8249f

Please # to comment.