Commit Graph

91 Commits

Author SHA1 Message Date
Thomas Lamprecht
12c851a9e0 add small script to help extracting more relevant changes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-08 11:38:50 +02:00
Thomas Lamprecht
bd400de844 bump version to 7.18.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:09:00 +01:00
Thomas Lamprecht
45a91473a3 switch to ECMA version 2018
Mainly to enable the rest/spread operator (...variable).

Other new features include asynchronous iteration,
Promise.prototype.finally and additions to RegExp (look behind, named
capture groups, s flag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 17:04:47 +01:00
Thomas Lamprecht
456be15ea9 import eslint 7.18.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-19 16:04:55 +01:00
Thomas Lamprecht
07e2881e8e bump version to 7.12.1-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-29 12:21:53 +01:00
Thomas Lamprecht
6f03646270 import 7.12.1 upstream release
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-29 11:42:45 +01:00
Thomas Lamprecht
a4a2572412 exit with error also on warnings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-22 12:52:22 +02:00
Thomas Lamprecht
3a486d1dba app: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-22 12:46:52 +02:00
Thomas Lamprecht
f49981c122 bump version to 7.2.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 16:55:23 +02:00
Thomas Lamprecht
d3726936c1 import and build new upstream release 7.2.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 16:55:23 +02:00
Thomas Lamprecht
551ca188fd ship an example config and extend-rules sample files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 16:55:23 +02:00
Thomas Lamprecht
d4b999a4ce add HelpInfo variables to globals
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 16:55:23 +02:00
Thomas Lamprecht
6a98065ee9 no-mixed-operators: do not check basic math precedence
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 16:41:45 +02:00
Thomas Lamprecht
e89a2e9218 improve no-extra-parens rule
We use both, 'no-extra-parens' and 'no-mixed-operators' rules and
those can conflict. Thus follow eslints recommendation[0] and allow
parenthesis in nestedBinaryExpressions to avoid the linter
complaining either way. Do this also fo enforceForArrowConditionals
as there I saw the issue already in practice for me.

[0]: https://eslint.org/docs/rules/no-mixed-operators#rule-details

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 16:29:00 +02:00
Thomas Lamprecht
067b576deb try to improve object-curly-newline
for me consistency on open/close is most important..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 14:53:28 +02:00
Thomas Lamprecht
3958e2506b disable 'no-else-return' rule
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 14:53:28 +02:00
Thomas Lamprecht
3fb7828e97 disable "no-underscore-dangle" as used in explicit unused variables
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 13:37:43 +02:00
Thomas Lamprecht
490226fadd disable semi-style for now
In generally we follow it but we want also to allow statements like:

let foo = bar
    ? 'baz'
    : 'foz'
    ;

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 13:37:43 +02:00
Thomas Lamprecht
630511aeb6 adapt some rules
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 13:29:24 +02:00
Thomas Lamprecht
4e679d18a2 add --output-config CLI option
can help to get the default config for adaption

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 13:29:24 +02:00
Thomas Lamprecht
177b4d5ea7 add possibiliity to extend base config over CLI
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 13:29:24 +02:00
Thomas Lamprecht
756e2b86db factor out path expansion
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 13:29:24 +02:00
Thomas Lamprecht
a4d939da61 no-unused-vars: allow starting with _underscore
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-06 12:57:17 +02:00
Thomas Lamprecht
6a5a0f8851 checkin build of 7.1.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-25 13:00:56 +02:00
Thomas Lamprecht
ebb53d86fb update to 7.1.0 sources
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-25 13:00:39 +02:00
Thomas Lamprecht
5661945977 bump version to 7.0.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-22 14:32:21 +02:00
Dominik Csapak
56c4a2cb43 upgrade to v7.0.0
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-22 13:50:35 +02:00
Thomas Lamprecht
7fd7b12660 bump version to 7.0.0~alpha3-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-10 17:07:16 +02:00
Dominik Csapak
74e9b54320 ignore unused 'me'
sometimes we want to have it just in case

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-10 17:06:08 +02:00
Thomas Lamprecht
6d505c5767 print relative file path
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-10 16:49:37 +02:00
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