Commit Graph

11 Commits

Author SHA1 Message Date
Thomas Lamprecht
7b71dd2c0b re do output formatting, save some lines
Moving the message and the info if something is auto-fixable to a
single line, saving ~ 2/3rd of output lines.

The auto-fixable got replaced with a (*) marker, it's not ideal but
IMO OK; explain what it means in the summaries "X issues marked with
(*) could be auto-fixed"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-10 16:38:43 +02:00
Dominik Csapak
8e4082d9d6 eslint: autofixes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-10 08:26:51 +02:00
Dominik Csapak
5fad4d8186 allow '!!' for boolean conversion
we use this many times, and it really should not be confusing,
also it is much shorter than: 'Boolean(foo)',

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-10 08:24:59 +02:00
Thomas Lamprecht
feb31555bd bump version to 7.0.0~alpha3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-09 18:56:07 +02:00
Thomas Lamprecht
8258fbf9bf drop "lints cwd on no params" hint
This is a bit strange behaviour, especially if there's nothing to
lint and one gets just a spewed out nodejs backtracke.. It's not hard
to just to `eslint *.js` or the like..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-09 18:55:09 +02:00
Thomas Lamprecht
ca06ae98f2 rules: dot-location: set location parameter to property
who the heck makes the following syntax the default:
> foo.
>    bar().
>    baz();

So let's enforce the right thing™ and enforce the dot sticking to the
property, not the object, i.e.:

> foo
>    .bar().
>    .baz();

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-09 18:30:40 +02:00
Thomas Lamprecht
be566999a0 exit sanely if no args are given
I mean some seem to like python style throwing up in ones face on
every occasion.. I don't though..

nodes drops the original argv0 in favor of process.execPath and the
path to the JavaScript file being executed, so we need more than two
args to be OK.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-09 18:27:51 +02:00
Thomas Lamprecht
30ca1a0a49 globals: sort and add PBS
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-09 18:15:36 +02:00
Thomas Lamprecht
9fb4b51e5c bump version to 7.0.0~alpha3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-09 18:06:29 +02:00
Thomas Lamprecht
382381f701 add dsc target, fix various packaging related stuff
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-09 18:06:06 +02:00
Dominik Csapak
eb39fafa4f first commit
includes a (minimal) working wrapper

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-06 15:06:03 +02:00