v21.0.0
Major Changes
-
#392
a7d5860
Thanks @Paul-Hebert! - Disallow the use of variables before they are defined. This rule was previously enabled forlet
andconst
declarations, and now it is also enabled forfunction
s,class
es, andvar
s. -
#395
ec2c2f3
Thanks @renovate! - Update eslint-plugin-unicorn to v43New Rules
Newly Enabled Rules
@cloudfour/unicorn/prefer-event-target
@cloudfour/unicorn/prefer-logical-operator-over-ternary
@cloudfour/unicorn/prefer-top-level-await
Also, the
prefer-node-protocol
rule has been updated to always apply torequire()
statements. -
#395
ec2c2f3
Thanks @renovate! - UpdateecmaVersion
to 2022 for ESLint parser