all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Javier Olaechea <pirata@gmail.com>
To: 74173@debbugs.gnu.org
Subject: [bug#74173] [PATCH] gnu: Add emacs-eslint-flymake.
Date: Mon, 4 Nov 2024 04:59:41 +0000	[thread overview]
Message-ID: <CAFVS=zAg0xWyynqsBEOUNunfc8=5DnfTs3uHvqOdqJFfDGZmbQ@mail.gmail.com> (raw)
In-Reply-To: <CAFVS=zBVFDaVsmx6xA3Wf1F001j=uoUN0KGx7icANZEdg6A4AA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

> Shouldn't it hardcode the eslint binary and add eslint as an input?

I can see the argument for both cases. In favor of listing as a dependency
is that the minor mode can be enabled globally out of the box and it will
run successfully. I also checked other flymake packages included by GUIX,
https://packages.guix.gnu.org/search/?query=flymake, like proselint and
percritic and we _do_ include programs they depend on as a dependency. So
including eslint as dependency seems aligned with our practices.  If we end
up deciding to do this, should we include rubocop as a dependency of
emacs-flymake? The flymake package ships with a rubocop backend.

The argument against is that ESlint is a program one runs in the context of
developing software for a specific project. ESlint has multiple versions
with different defaults. And one always wants to run the same version of
ESLint that is specified by the package.json. As that is the version that
will be used by CI. Personally I use npx to ensure that the version of
ESLint being used is the project specific one w/o having to resort to
project specific configuration.

My personal preference would be to not include it, but I'm fine either way.
Let me know what you think.

A more practical consideration for not including ESLint as an input right
now is that we don't have a package for it! I can look into packaging
ESLint but I'd rather we block this patch until we package ESLint. It seems
RDE has a package for it.

Cheers

-- 
"I object to doing things that computers can do." — Olin Shivers

[-- Attachment #2: Type: text/html, Size: 1971 bytes --]

      parent reply	other threads:[~2024-11-04  5:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-02  5:34 [bug#74173] [PATCH] gnu: Add emacs-eslint-flymake Javier Olaechea
2024-11-03 20:01 ` Nicolas Graves via Guix-patches via
2024-11-04  4:59 ` Javier Olaechea [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFVS=zAg0xWyynqsBEOUNunfc8=5DnfTs3uHvqOdqJFfDGZmbQ@mail.gmail.com' \
    --to=pirata@gmail.com \
    --cc=74173@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.