[Pkg-javascript-devel] Bug#985423: Bug#985423: eslint needs to depend on node-text-table (or change default formatter)
Jonas Smedegaard
jonas at jones.dk
Thu Mar 18 11:05:21 GMT 2021
Quoting Marco Trevisan (2021-03-18 05:23:41)
> Hi Jonas,
>
> > eslint does not depend on but recommends node-text-table, and does so
> > because it is needed only in "all but unusual installations" as
> > covered by Debian Policy § 7.2:
>
> I'm a bit confused by this as launching in a clean schroot where I've
> only eslint installed I get:
>
> eslint -h
>
> Output:
> -f, --format String Use a specific output format - default: stylish
>
> So, the stylish module is the default one and as such, it isn't
> exactly required by unusual installations, but by all unless you don't
> use another `--format`, isn't it?
By "launching in a clean schroot" you probably imply that you install
without respecting recommendations: Debian respects recommendations by
default, but not when establishing build environments.
When you use eslint during build, then make sure to call eslint with
--format to avoid the need for the recommended package.
Example use in debian/rules (taken from node-regexpp):
ESLINT = eslint
MOCHA = mocha --no-timeout
# normalize output with TAP where possible unless terse requested
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
ESLINT += --format tap
MOCHA += --reporter tap
else
ESLINT += --format unix
MOCHA += --reporter dot --no-colors
endif
%:
<------>dh $@
override_dh_auto_test:
$(MOCHA) "test/*.ts"
$(ESLINT) scripts src test
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210318/9a3b0a97/attachment.sig>
More information about the Pkg-javascript-devel
mailing list