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

Attachment: signature.asc
Description: signature

Reply via email to