Unicorn
245 rules eslint-plugin-unicorn@78.0.0
Complete effective rule inventory.
Rules
No enabled Unicorn rules match this search.
-
unicorn/no-invalid-response-optionsDisallow invalid options in
new Response(),Response.json(), andResponse.redirect().: error in All Unicorn contexts -
unicorn/no-invalid-style-set-propertyDisallow invalid arguments to
CSSStyleDeclaration#setProperty().: error in All Unicorn contexts -
unicorn/no-invalid-temporal-arithmeticDisallow statically known invalid Temporal arithmetic.
: error in All Unicorn contexts -
unicorn/no-invalid-url-protocol-comparisonDisallow invalid protocol strings in comparisons with
URL#protocol.: error in All Unicorn contexts -
unicorn/no-invalid-well-known-symbol-methodsDisallow invalid implementations of well-known symbol methods.
: error in All Unicorn contexts -
unicorn/no-late-current-target-accessDisallow accessing
event.currentTargetafter the synchronous event dispatch has finished.: error in All Unicorn contexts -
unicorn/no-late-event-controlDisallow event-control method calls after the synchronous event dispatch has finished.
: error in All Unicorn contexts -
unicorn/no-leading-empty-linesDisallow empty lines at the beginning of a file.
: error in All Unicorn contexts -
unicorn/no-loop-iterable-mutationDisallow mutating a loop iterable during iteration.
: error in All Unicorn contexts -
unicorn/no-magic-array-flat-depthDisallow a magic number as the
depthargument inArray#flat(…).: error in All Unicorn contexts -
unicorn/no-mismatched-map-keyDisallow checking a Map key before accessing a different key.
: error in All Unicorn contexts -
unicorn/no-misrefactored-assignmentDisallow misrefactored compound assignments where the target is duplicated in the right-hand side.
: error in All Unicorn contexts -
unicorn/no-missing-local-resourceDisallow references to missing local resources.
: error in All Unicorn contexts -
unicorn/no-multiple-promise-resolver-callsDisallow calling Promise executor resolver functions more than once on the same execution path.
: error in All Unicorn contexts -
unicorn/no-negation-in-equality-checkDisallow negated expression in equality check.
: error in All Unicorn contexts -
unicorn/no-new-bufferEnforce the use of
Buffer.from()andBuffer.alloc()instead of the deprecatednew Buffer().: error in All Unicorn contexts -
unicorn/no-nonstandard-builtin-propertiesDisallow non-standard properties on built-in objects.
: error in All Unicorn contexts -
unicorn/no-object-as-default-parameterDisallow the use of objects as default parameters.
: error in All Unicorn contexts -
unicorn/no-object-methods-with-collectionsDisallow
Objectmethods withMaporSet.: error in All Unicorn contexts -
unicorn/no-optional-chaining-on-undeclared-variableDisallow optional chaining on undeclared variables.
: error in All Unicorn contexts -
unicorn/no-prevent-default-in-passive-listenerDisallow ineffective
preventDefault()calls in passive event listeners.: error in All Unicorn contexts -
unicorn/no-redundant-comparisonDisallow comparisons made redundant by an equality check in the same logical AND.
: error in All Unicorn contexts -
unicorn/no-repeated-call-wrappersDisallow repeating the same wrapper at every call to a function.
: warning in All Unicorn contexts -
unicorn/no-return-array-pushDisallow using the return value of
Array#push()andArray#unshift().: error in All Unicorn contexts -
unicorn/no-selector-as-dom-nameDisallow selector syntax in DOM names.
: error in All Unicorn contexts -
unicorn/no-shorthand-property-overridesDisallow shorthand properties that override related longhand properties.
: error in All Unicorn contexts -
unicorn/no-single-promise-in-promise-methodsDisallow passing single-element arrays to
Promisemethods.: error in All Unicorn contexts -
unicorn/no-subtraction-comparisonPrefer comparing values directly over subtracting and comparing to
0.: error in All Unicorn contexts -
unicorn/no-this-assignmentDisallow assigning
thisto a variable.: error in All Unicorn contexts -
unicorn/no-this-outside-of-classDisallow
thisoutside of classes.: error in All Unicorn contexts -
unicorn/no-typeof-undefinedDisallow comparing
undefinedusingtypeof.: error in All Unicorn contexts -
unicorn/no-uncalled-methodDisallow referencing methods without calling them.
: error in All Unicorn contexts