run nixfmt
This commit is contained in:
@@ -40,17 +40,32 @@
|
||||
];
|
||||
formatters = [
|
||||
{
|
||||
filetypes = [ "typescript" "typescriptreact" "svelte" ];
|
||||
globs = [ "*.ts" "*.tsx" "*.svelte" ];
|
||||
filetypes = [
|
||||
"typescript"
|
||||
"typescriptreact"
|
||||
"svelte"
|
||||
];
|
||||
globs = [
|
||||
"*.ts"
|
||||
"*.tsx"
|
||||
"*.svelte"
|
||||
];
|
||||
exe = "npx";
|
||||
args = file: [ "prettier" "--stdin-filepath" file ];
|
||||
args = file: [
|
||||
"prettier"
|
||||
"--stdin-filepath"
|
||||
file
|
||||
];
|
||||
stdin = true;
|
||||
}
|
||||
{
|
||||
filetypes = [ "prisma" ];
|
||||
globs = [ "*.prisma" ];
|
||||
exe = "${pkgs.nodePackages.prisma}/bin/prisma";
|
||||
args = file: [ "format" "--schema" ];
|
||||
args = file: [
|
||||
"format"
|
||||
"--schema"
|
||||
];
|
||||
stdin = false;
|
||||
}
|
||||
];
|
||||
@@ -67,13 +82,21 @@
|
||||
{
|
||||
name = "prismals";
|
||||
package = nodePackages."@prisma/language-server";
|
||||
rootPattern = [ "package.json" "deno.json" ];
|
||||
rootPattern = [
|
||||
"package.json"
|
||||
"deno.json"
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "graphql";
|
||||
package = nodePackages.graphql-language-service-cli;
|
||||
config = {
|
||||
filetypes = [ "typescript" "typescriptreact" "graphql" "svelte" ];
|
||||
filetypes = [
|
||||
"typescript"
|
||||
"typescriptreact"
|
||||
"graphql"
|
||||
"svelte"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user