More than 100 powerful ESLint rules
MIT License
Bot releases are hidden (Show)
catch-error-name
rule (#581) 7bd8687https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v17.0.1...v17.1.0
https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v17.0.0...v17.0.1
string-content
rule (off by default) (#496) 0972a89regex-shorthand
rule to better-regex
(#522) a5e5405new-for-builtins
rule (#540) fdd96cbprefer-node-remove
rule (#507) b6e6b32prefer-spread
: Insert semicolon if needed (#578) 49c4acfprefer-negative-index
crash on not enough arguments (#564) 50e038cconsistent-function-scoping
(#562) ec4387cno-new-buffer
crash on TypeScript-ESLint
(#560) e4f4bb4escape-case
missing cases (#534) 892f054.onmessage
in prefer-add-event-listener
rule (#543) 96af562https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v16.1.1...v17.0.0
escape-case
fixer bug on template literals (#525) cb24d44https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v16.1.0...v16.1.1
https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v16.0.0...v16.1.0
prefer-replace-all
rule (#488) d98c277regex-shorthand
rule (#468) fb0268bprefer-exponentiation-operator
rule in favor of the built-in ESLint rule (#484) c4ffb1anumber-literal-case
rule (#490) cea1346expiring-todo-comments
crashing on invalid package version (#494) fd46adcno-for-loops
rule (#489) 94345a3prefer-modern-dom-apis
: Only fix when expression is not used (#503) 096feadprefer-node-remove
: Only fix when expression is not used (#498) b1d3f37https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v15.0.1...v16.0.0
https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v15.0.0...v15.0.1
prefer-modern-dom-apis
(#362) 44d14b9prevent-abbreviations
rule replacements and whitelist (#464) cfd3d49no-for-loops
rule (#476) 44a67f1https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v14.0.1...v15.0.0
regex-shorthand
rule (#454) db41877https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v14.0.0...v14.0.1
prefer-negative-index
rule (#417) 20dfb65prefer-trim-start-end
rule (#440) 29e3b13prefer-string-slice
rule (#424) 567c970ignoreImports
option to import-index
rule (#421) bda7769regex-shorthand
rule use regexp-tree
for regex literals (#437) 3554c17prevent-abbreviations
rule fixer bug (#444) fa8c80ecustom-error-definition
rule to support constructors without a body (#442) a496e96https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v13.0.0...v14.0.0
prevent-abbreviations
rule (#422) 4d5f5cbcheckDefaultAndNamespaceImports
and checkShorthandImports
options accept a string instead of a boolean now. The default value changed from always checking to only checking internal imports (meaning local modules and not published packages).expiring-todo-comments
rule (#435) a03132eignore
option to the filename-case
rule (#431) 1bc47a0require()
in import-index
rule (#436) 393e8e1https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v12.1.0...v13.0.0
prefer-includes
rule (#411) 32851cccheckProperties
default value to false
for prevent-abbreviations
(#404) d279f2ahttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v12.0.2...v12.1.0
allowWarningComments
option default to true
for expiring-todo-comments
rule (#400) 5f409ffhttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v12.0.1...v12.0.2
expiring-todo-comments
rule (#397) f9f6ee6https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v12.0.0...v12.0.1
prefer-string-slice
rule (#288) cbd5dfcfilename-case
rule to handle complicated filename (#381) 871dab7prevent-abbreviations
to ignore uppercase letters (#379) 50e6655expiring-todo-comments
rule for programmatic usage of ESLint (#385) b5cf874no-process-exit
rule in worker threads (#388) 90ca979https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v11.0.2...v12.0.0
unicorn/prefer-dataset
: Fix querySelector
fixer (#383) 3ba54e9https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v11.0.1...v11.0.2
consistent-function-scoping
: Ignore anything containing JSX (#382) 8a999c0consistent-function-scoping
: Do not fail on same-scoped function references (#378) b62d96ehttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v11.0.0...v11.0.1
expiring-todo-comments
rule (#302) 6b6cee5no-nested-ternary
rule (#296) 767fa8dconsistent-function-scoping
rule (#309) 91bbff5prefer-reflect-apply
rule (#239) 0b9c0feprefer-dataset
rule (#225) 0910972prevent-abbreviations
rule: 9b81e11 8ff4d91 dc8841a f500437
param
→ parameter
params
→ parameters
cur
→ current
curr
→ current
acc
→ accumulator
dir
→ direction
BigInt64Array
and BigUint64Array
types to the new-for-builtins
rule (#353) e7ff2deisBigInt
type check to the prefer-type-error
rule (#356) 186abd3prevent-abbreviations
rule to handle more cases (#337) 9db361feslint --stdin
(#346) 5e7ac3ecatch-error-name
rule (#363) 05641bahttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v10.0.0...v11.0.0
no-keyword-prefix
rule (#282) 1982af5checkFilenames
option to the prevent-abbreviations
rule (#336) 4c3d61cxo/no-abusive-eslint-disable
via a comment (#308) 0fb6fcfno-fn-reference-in-iterator
rule (#281) 7410a1ehttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v9.1.1...v10.0.0
prefer-node-append
: Only fix when expression is not used (#321) d62666dhttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v9.1.0...v9.1.1