1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 20:17:45 +00:00

Use prettier, and use clippy

This commit is contained in:
RGBCube 2024-01-09 19:10:59 +03:00
parent fe7acc2ec4
commit 956bdbaa76
No known key found for this signature in database

View file

@ -11,7 +11,69 @@
auto-format = false;
formatter.command = "alejandra";
formatter.args = [ "-" ];
}
{
name = "markdown";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "markdown"];
}
{
name = "javascript";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "javascript" ];
}
{
name = "typescript";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "typescript" ];
}
{
name = "jsx";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "javascript" ];
}
{
name = "tsx";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "typescript" ];
}
{
name = "html";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "html" ];
}
{
name = "css";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "css" ];
}
{
name = "json";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "json" ];
}
{
name = "yaml";
auto-format = true;
formatter.command = "prettier";
formatter.args = [ "--parser" "yaml" ];
}
{
name = "cull";
@ -29,6 +91,8 @@
}
];
languages.language-server.rust-analyzer.config.check.command = "clippy";
settings.theme = "gruvbox_dark_hard";
settings.editor = {
@ -99,6 +163,9 @@
# RUST
rust-analyzer-nightly
# WEB & JS
prettier
# ZIG
upkgs.zls
]))