stylelint: modernized derivation and formatted via nixfmt-rfc-style

- Removed `rec`
- Removed `with lib;`
This commit is contained in:
Mutsuha Asada 2024-09-22 23:17:06 +09:00
parent f88d5e23d9
commit 96efb53527
No known key found for this signature in database
GPG Key ID: ACB54F0CBC6AA7C6

View File

@ -1,8 +1,15 @@
{ buildNpmPackage, fetchFromGitHub, lib }:
{
buildNpmPackage,
fetchFromGitHub,
lib,
}:
buildNpmPackage rec {
pname = "stylelint";
let
version = "16.9.0";
in
buildNpmPackage {
pname = "stylelint";
inherit version;
src = fetchFromGitHub {
owner = "stylelint";
@ -15,11 +22,11 @@ buildNpmPackage rec {
dontNpmBuild = true;
meta = with lib; {
meta = {
description = "Mighty CSS linter that helps you avoid errors and enforce conventions";
mainProgram = "stylelint";
homepage = "https://stylelint.io";
license = licenses.mit;
maintainers = [ ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ momeemt ];
};
}