Oxc
17 rules oxlint@1.91.0
Complete effective rule inventory.
Rules
No enabled Oxc rules match this search.
-
oxc/approx-constantPrefer
Mathconstants over their approximate numeric values.: error in All Oxc contexts -
oxc/bad-array-method-on-argumentsDisallow calling array methods on the
argumentsobject: error in All Oxc contexts -
oxc/bad-bitwise-operatorDisallow bitwise operators where a logical operator was likely intended.
: error in All Oxc contexts -
oxc/bad-char-at-comparisonDisallow comparing a single character from a string to a multi-character string.
: error in All Oxc contexts -
oxc/bad-comparison-sequenceDisallow chained comparisons such as
a < b < c.: error in All Oxc contexts -
oxc/bad-match-all-argdisallow missing
gflag in patterns used inString#matchAllandString#replaceAll: warning in All Oxc contexts -
oxc/bad-min-max-funcDisallow
Math.minandMath.maxclamps whose argument order always yields a constant: error in All Oxc contexts -
oxc/bad-object-literal-comparisonDisallow comparing a value with an object or array literal
: error in All Oxc contexts -
oxc/bad-replace-all-argdisallow missing
gflag in patterns used inString#matchAllandString#replaceAll: warning in All Oxc contexts -
oxc/const-comparisonsDisallow adjacent duplicate operands in logical expressions.
: error in All Oxc contexts -
oxc/double-comparisonsDisallow two comparisons of the same operands that can be combined into one.
: error in All Oxc contexts -
oxc/erasing-opDisallow arithmetic and bitwise operations that always evaluate to
0.: error in All Oxc contexts -
oxc/misrefactored-assign-opDisallow misrefactored compound assignments where the target is duplicated in the right-hand side.
: error in All Oxc contexts -
oxc/missing-throwRequire
throwin front of anewerror expression statement: error in All Oxc contexts -
oxc/number-arg-out-of-rangeDisallow radix and precision arguments outside the range number methods accept
: error in All Oxc contexts -
oxc/only-used-in-recursionDisallow parameters that are only passed to recursive calls
: error in All Oxc contexts -
oxc/uninvoked-array-callbackDisallow array callbacks on arrays with empty slots, which never invoke them
: error in All Oxc contexts