Unicorn (JS plugin)
80 rules @sarj/eslint-plugin@19.18.0
Complete effective rule inventory.
Rules
No enabled Unicorn (JS plugin) rules match this search.
-
unicorn-js/no-useless-continueDisallow useless
continuestatements.: error in All Unicorn (JS plugin) contexts -
unicorn-js/no-useless-delete-checkDisallow unnecessary existence checks before deletion.
: error in All Unicorn (JS plugin) contexts -
unicorn-js/no-useless-overrideDisallow useless overrides of class methods.
: error in All Unicorn (JS plugin) contexts -
unicorn-js/no-useless-recursionDisallow simple recursive function calls that can be replaced with a loop.
: error in All Unicorn (JS plugin) contexts -
unicorn-js/no-useless-set-constructionDisallow unnecessary
Setconstruction aroundSetmethods.: error in All Unicorn (JS plugin) contexts -
unicorn-js/no-xor-as-exponentiationDisallow the bitwise XOR operator where exponentiation was likely intended.
: error in All Unicorn (JS plugin) contexts -
unicorn-js/prefer-add-event-listener-optionsPrefer an options object over a boolean in
.addEventListener().: error in All Unicorn (JS plugin) contexts -
unicorn-js/prefer-combined-guardsPrefer combining consecutive guards with identical exit statements.
: warning in All Unicorn (JS plugin) contexts -
unicorn-js/prefer-iterator-to-arrayPrefer
Iterator#toArray()over temporary arrays from iterator spreads.: error in All Unicorn (JS plugin) contexts -
unicorn-js/prefer-logical-operator-over-ternaryPrefer using a logical operator over a ternary.
: error in All Unicorn (JS plugin) contexts -
unicorn-js/prefer-single-object-destructuringPrefer a single object destructuring declaration per local const source.
: warning in All Unicorn (JS plugin) contexts -
unicorn-js/prefer-top-level-awaitPrefer top-level await over top-level promises and async function calls.
: error in All Unicorn (JS plugin) contexts -
unicorn-js/prefer-type-errorEnforce throwing
TypeErrorin type checking conditions.: error in All Unicorn (JS plugin) contexts -
unicorn-js/require-css-escapeRequire
CSS.escape()for interpolated values in CSS selectors.: error in All Unicorn (JS plugin) contexts -
unicorn-js/require-passive-eventsRequire passive event listeners for high-frequency events.
: error in All Unicorn (JS plugin) contexts -
unicorn-js/require-text-decoder-streamingRequire streaming decoding of fetch-body chunks with
TextDecoder.: error in All Unicorn (JS plugin) contexts