Compare commits
5 Commits
841441dfef
...
04330a39fa
Author | SHA1 | Date | |
---|---|---|---|
04330a39fa | |||
8e23c8602a | |||
d3cdb698e4 | |||
757d5e746a | |||
3000c65ead |
11
flake.lock
11
flake.lock
|
@ -208,15 +208,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714058656,
|
"lastModified": 1714382886,
|
||||||
"narHash": "sha256-Qv4RBm4LKuO4fNOfx9wl40W2rBbv5u5m+whxRYUMiaA=",
|
"narHash": "sha256-+gooxbbYcP+MORKQ7W/C2ATvlonW+dyHgCUPnu5dfco=",
|
||||||
"owner": "numtide",
|
"owner": "brianmcgee",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "c6aaf729f34a36c445618580a9f95a48f5e4e03f",
|
"rev": "535e6904c34964ce56d8c092835c11fe6341acc8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "numtide",
|
"owner": "brianmcgee",
|
||||||
|
"ref": "feat/pipelines",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
flake-root.url = "github:srid/flake-root";
|
flake-root.url = "github:srid/flake-root";
|
||||||
treefmt-nix = {
|
treefmt-nix = {
|
||||||
url = "github:numtide/treefmt-nix";
|
# todo switch back to numtide/treefmt-nix once merged
|
||||||
|
url = "github:brianmcgee/treefmt-nix/feat/pipelines";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
devshell = {
|
devshell = {
|
||||||
|
|
|
@ -22,20 +22,37 @@
|
||||||
statix.enable = true;
|
statix.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
settings.formatter.prettier = {
|
settings.formatter = {
|
||||||
options = ["--tab-width" "4"];
|
deadnix = {
|
||||||
includes = [
|
pipeline = "nix";
|
||||||
"*.css"
|
priority = 1;
|
||||||
"*.html"
|
};
|
||||||
"*.js"
|
|
||||||
"*.json"
|
statix = {
|
||||||
"*.jsx"
|
pipeline = "nix";
|
||||||
"*.md"
|
priority = 2;
|
||||||
"*.mdx"
|
};
|
||||||
"*.scss"
|
|
||||||
"*.ts"
|
alejandra = {
|
||||||
"*.yaml"
|
pipeline = "nix";
|
||||||
];
|
priority = 3;
|
||||||
|
};
|
||||||
|
|
||||||
|
prettier = {
|
||||||
|
options = ["--tab-width" "4"];
|
||||||
|
includes = [
|
||||||
|
"*.css"
|
||||||
|
"*.html"
|
||||||
|
"*.js"
|
||||||
|
"*.json"
|
||||||
|
"*.jsx"
|
||||||
|
"*.md"
|
||||||
|
"*.mdx"
|
||||||
|
"*.scss"
|
||||||
|
"*.ts"
|
||||||
|
"*.yaml"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user