Unicorn
86 rules oxlint@1.91.0
Complete effective rule inventory.
Rules
No enabled Unicorn rules match this search.
-
unicorn/prefer-node-protocolPrefer using the
node:protocol when importing Node.js builtin modules.: error in All Unicorn contexts -
unicorn/prefer-number-propertiesPrefer
Numberstatic methods over global functions and optionally static properties over global constants.: error in All Unicorn contexts -
unicorn/prefer-object-from-entriesPrefer using
Object.fromEntries(…)to transform a list of key-value pairs into an object.: error in All Unicorn contexts -
unicorn/prefer-optional-catch-bindingPrefer omitting the
catchbinding parameter.: error in All Unicorn contexts -
unicorn/prefer-regexp-testPrefer
RegExp#test()overString#match(),String#search(), andRegExp#exec().: error in All Unicorn contexts -
unicorn/prefer-response-static-jsonPrefer
Response.json()overnew Response(JSON.stringify()).: error in All Unicorn contexts -
unicorn/prefer-set-hasPrefer
Set#has()overArray#includes()when checking for existence or non-existence.: error in All Unicorn contexts -
unicorn/prefer-set-sizePrefer using
Set#sizeinstead ofArray#length.: error in All Unicorn contexts -
unicorn/prefer-spreadPrefer the spread operator over
Array.from(…),Array#concat(…),Array#{slice,toSpliced}(), and trivialfor…ofcopies.: error in All Unicorn contexts -
unicorn/prefer-string-rawPrefer using the
String.rawtag to avoid escaping\.: error in All Unicorn contexts -
unicorn/prefer-string-replace-allPrefer
String#replaceAll()over regex searches with the global flag andString#split().join().: error in All Unicorn contexts -
unicorn/prefer-string-slicePrefer
String#slice()overString#substr()andString#substring().: error in All Unicorn contexts -
unicorn/prefer-string-trim-start-endPrefer
String#trimStart()/String#trimEnd()overString#trimLeft()/String#trimRight().: error in All Unicorn contexts -
unicorn/prefer-structured-clonePrefer using
structuredCloneto create a deep clone.: error in All Unicorn contexts -
unicorn/relative-url-styleEnforce consistent relative URL style.
: error in All Unicorn contexts -
unicorn/require-array-join-separatorEnforce using the separator argument with
Array#join().: error in All Unicorn contexts -
unicorn/require-module-attributesRequire non-empty module attributes for imports and exports
: error in All Unicorn contexts -
unicorn/require-module-specifiersRequire non-empty specifier list in import and export statements.
: error in All Unicorn contexts -
unicorn/require-number-to-fixed-digits-argumentEnforce using the digits argument with
Number#toFixed().: error in All Unicorn contexts -
unicorn/require-post-message-target-originEnforce using the
targetOriginargument withwindow.postMessage().: error in All Unicorn contexts -
unicorn/text-encoding-identifier-caseEnforce consistent case for text encoding identifiers.
: error in All Unicorn contexts -
unicorn/throw-new-errorRequire
newwhen creating an error.: error in All Unicorn contexts