]>
git.proxmox.com Git - pve-eslint.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Thomas Lamprecht [Tue, 19 Jan 2021 16:02:53 +0000 (17:02 +0100)]
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>
Thomas Lamprecht [Tue, 19 Jan 2021 15:04:13 +0000 (16:04 +0100)]
import eslint 7.18.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 29 Oct 2020 11:21:53 +0000 (12:21 +0100)]
bump version to 7.12.1-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 22 Oct 2020 11:01:02 +0000 (13:01 +0200)]
import 7.12.1 upstream release
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 22 Oct 2020 10:47:58 +0000 (12:47 +0200)]
exit with error also on warnings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 22 Oct 2020 10:46:52 +0000 (12:46 +0200)]
app: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 14:01:26 +0000 (16:01 +0200)]
bump version to 7.2.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 13:59:12 +0000 (15:59 +0200)]
import and build new upstream release 7.2.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 10:56:33 +0000 (12:56 +0200)]
ship an example config and extend-rules sample files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 14:54:42 +0000 (16:54 +0200)]
add HelpInfo variables to globals
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 14:41:35 +0000 (16:41 +0200)]
no-mixed-operators: do not check basic math precedence
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 13:19:39 +0000 (15:19 +0200)]
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>
Thomas Lamprecht [Sat, 6 Jun 2020 12:51:01 +0000 (14:51 +0200)]
try to improve object-curly-newline
for me consistency on open/close is most important..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 12:04:10 +0000 (14:04 +0200)]
disable 'no-else-return' rule
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 11:36:39 +0000 (13:36 +0200)]
disable "no-underscore-dangle" as used in explicit unused variables
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 11:03:29 +0000 (13:03 +0200)]
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>
Thomas Lamprecht [Sat, 6 Jun 2020 10:50:21 +0000 (12:50 +0200)]
adapt some rules
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 10:49:55 +0000 (12:49 +0200)]
add --output-config CLI option
can help to get the default config for adaption
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 10:13:04 +0000 (12:13 +0200)]
add possibiliity to extend base config over CLI
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Sat, 6 Jun 2020 10:12:30 +0000 (12:12 +0200)]
factor out path expansion
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 26 May 2020 09:53:57 +0000 (11:53 +0200)]
no-unused-vars: allow starting with _underscore
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 25 May 2020 11:00:56 +0000 (13:00 +0200)]
checkin build of 7.1.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Mon, 25 May 2020 11:00:39 +0000 (13:00 +0200)]
update to 7.1.0 sources
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 22 May 2020 12:32:21 +0000 (14:32 +0200)]
bump version to 7.0.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Fri, 22 May 2020 11:37:30 +0000 (13:37 +0200)]
upgrade to v7.0.0
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Thomas Lamprecht [Fri, 10 Apr 2020 15:02:45 +0000 (17:02 +0200)]
bump version to 7.0.0~alpha3-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Fri, 10 Apr 2020 15:06:08 +0000 (17:06 +0200)]
ignore unused 'me'
sometimes we want to have it just in case
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Thomas Lamprecht [Fri, 10 Apr 2020 14:49:37 +0000 (16:49 +0200)]
print relative file path
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 10 Apr 2020 14:38:40 +0000 (16:38 +0200)]
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>
Dominik Csapak [Fri, 10 Apr 2020 06:26:51 +0000 (08:26 +0200)]
eslint: autofixes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Fri, 10 Apr 2020 06:24:59 +0000 (08:24 +0200)]
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>
Thomas Lamprecht [Thu, 9 Apr 2020 16:52:35 +0000 (18:52 +0200)]
bump version to 7.0.0~alpha3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 9 Apr 2020 16:54:43 +0000 (18:54 +0200)]
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>
Thomas Lamprecht [Thu, 9 Apr 2020 16:29:46 +0000 (18:29 +0200)]
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>
Thomas Lamprecht [Thu, 9 Apr 2020 16:27:48 +0000 (18:27 +0200)]
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>
Thomas Lamprecht [Thu, 9 Apr 2020 16:15:36 +0000 (18:15 +0200)]
globals: sort and add PBS
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 9 Apr 2020 15:57:26 +0000 (17:57 +0200)]
bump version to 7.0.0~alpha3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 9 Apr 2020 15:57:06 +0000 (17:57 +0200)]
add dsc target, fix various packaging related stuff
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Thu, 2 Apr 2020 07:24:29 +0000 (09:24 +0200)]
first commit
includes a (minimal) working wrapper
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>