26 lines
452 B
Nix
26 lines
452 B
Nix
{
|
|
pkgs,
|
|
pkgsMaster,
|
|
...
|
|
}: {
|
|
plugins.lint = {
|
|
enable = true;
|
|
lintersByFt = {
|
|
nix = ["statix"];
|
|
lua = ["selene"];
|
|
python = ["flake8"];
|
|
javascript = ["eslint_d"];
|
|
javascriptreact = ["eslint_d"];
|
|
typescript = ["eslint_d"];
|
|
typescriptreact = ["eslint_d"];
|
|
json = ["jsonlint"];
|
|
java = ["checkstyle"];
|
|
};
|
|
};
|
|
|
|
extraPackages = with pkgs; [
|
|
statix
|
|
pkgsMaster.eslint_d
|
|
];
|
|
}
|