eslint-plugin-unicorn

More than 100 powerful ESLint rules

MIT License

Downloads
11.8M
Stars
3.9K
Committers
152

Bot releases are hidden (Show)

eslint-plugin-unicorn -

Published by sindresorhus over 4 years ago

  • Allow descriptive error names by default in catch-error-name rule (#581) 7bd8687

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v17.0.1...v17.1.0

eslint-plugin-unicorn -

Published by sindresorhus over 4 years ago

  • Fix a problem with deprecated rules (#584) fe8f336

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v17.0.0...v17.0.1

eslint-plugin-unicorn -

Published by sindresorhus over 4 years ago

New rules

Breaking

  • Rename regex-shorthand rule to better-regex (#522) a5e5405

Improvements

  • Improve new-for-builtins rule (#540) fdd96cb
  • Expand reporting for prefer-node-remove rule (#507) b6e6b32

Fixes

  • prefer-spread: Insert semicolon if needed (#578) 49c4acf
  • Fix prefer-negative-index crash on not enough arguments (#564) 50e038c
  • Fix scope compare in consistent-function-scoping (#562) ec4387c
  • Fix no-new-buffer crash on TypeScript-ESLint (#560) e4f4bb4
  • Fix escape-case missing cases (#534) 892f054
  • Disable auto-fix .onmessage in prefer-add-event-listener rule (#543) 96af562

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v16.1.1...v17.0.0

eslint-plugin-unicorn -

Published by sindresorhus over 4 years ago

  • Fix escape-case fixer bug on template literals (#525) cb24d44

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v16.1.0...v16.1.1

eslint-plugin-unicorn -

Published by sindresorhus over 4 years ago

  • Ensure all the rules are compatible with TypeScript-ESLint (#519) 3bff4fd

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v16.0.0...v16.1.0

eslint-plugin-unicorn -

Published by sindresorhus over 4 years ago

Breaking

  • Require Node.js 10 d2ffe2c

New rules

Improvements

  • Allow disabling of regexp character sorting in the regex-shorthand rule (#468) fb0268b
  • Deprecate our prefer-exponentiation-operator rule in favor of the built-in ESLint rule (#484) c4ffb1a
  • Improve number-literal-case rule (#490) cea1346

Fixes

  • Fix expiring-todo-comments crashing on invalid package version (#494) fd46adc
  • Fix invalid autofix with array destructuring in no-for-loops rule (#489) 94345a3
  • prefer-modern-dom-apis: Only fix when expression is not used (#503) 096fead
  • prefer-node-remove: Only fix when expression is not used (#498) b1d3f37

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v15.0.1...v16.0.0

eslint-plugin-unicorn -

Published by sindresorhus almost 5 years ago

eslint-plugin-unicorn -

Published by sindresorhus almost 5 years ago

New rules

Enhancements

  • Add more prevent-abbreviations rule replacements and whitelist (#464) cfd3d49

Fixes

  • Fix invalid autofix with destructuring assignment in no-for-loops rule (#476) 44a67f1

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v14.0.1...v15.0.0

eslint-plugin-unicorn -

Published by sindresorhus almost 5 years ago

  • Fix crashing issues with the regex-shorthand rule (#454) db41877

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v14.0.0...v14.0.1

eslint-plugin-unicorn -

Published by sindresorhus almost 5 years ago

New rules

Improvements

  • Extend fixers for prefer-string-slice rule (#424) 567c970
  • Add ignoreImports option to import-index rule (#421) bda7769
  • Make regex-shorthand rule use regexp-tree for regex literals (#437) 3554c17

Fixes

  • Fix prevent-abbreviations rule fixer bug (#444) fa8c80e
  • Fix custom-error-definition rule to support constructors without a body (#442) a496e96

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v13.0.0...v14.0.0

eslint-plugin-unicorn -

Published by sindresorhus almost 5 years ago

Breaking

  • Change some options for prevent-abbreviations rule (#422) 4d5f5cb
    The checkDefaultAndNamespaceImports 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).

Enhancements

Fixes

  • Fix require() in import-index rule (#436) 393e8e1

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v12.1.0...v13.0.0

eslint-plugin-unicorn -

Published by sindresorhus about 5 years ago

  • Improve prefer-includes rule (#411) 32851cc
  • Set checkProperties default value to false for prevent-abbreviations (#404) d279f2a

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v12.0.2...v12.1.0

eslint-plugin-unicorn -

Published by sindresorhus about 5 years ago

  • Fix an error where the rules in some situation could not be found a026ae5
  • Set allowWarningComments option default to true for expiring-todo-comments rule (#400) 5f409ff

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v12.0.1...v12.0.2

eslint-plugin-unicorn -

Published by sindresorhus about 5 years ago

  • Handle lack of package.json in expiring-todo-comments rule (#397) f9f6ee6

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v12.0.0...v12.0.1

eslint-plugin-unicorn -

Published by sindresorhus about 5 years ago

New rules

Enhancements

  • Update filename-case rule to handle complicated filename (#381) 871dab7
  • Update prevent-abbreviations to ignore uppercase letters (#379) 50e6655

Fixes

  • Fix the expiring-todo-comments rule for programmatic usage of ESLint (#385) b5cf874
  • Don't report no-process-exit rule in worker threads (#388) 90ca979

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v11.0.2...v12.0.0

eslint-plugin-unicorn -

Published by sindresorhus about 5 years ago

  • unicorn/prefer-dataset: Fix querySelector fixer (#383) 3ba54e9

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v11.0.1...v11.0.2

eslint-plugin-unicorn -

Published by sindresorhus about 5 years ago

  • consistent-function-scoping: Ignore anything containing JSX (#382) 8a999c0
  • consistent-function-scoping: Do not fail on same-scoped function references (#378) b62d96e

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v11.0.0...v11.0.1

eslint-plugin-unicorn -

Published by sindresorhus about 5 years ago

New rules

Enhancements

  • Add more replacements to the prevent-abbreviations rule: 9b81e11 8ff4d91 dc8841a f500437
    • paramparameter
    • paramsparameters
    • curcurrent
    • currcurrent
    • accaccumulator
    • dirdirection
  • Add BigInt64Array and BigUint64Array types to the new-for-builtins rule (#353) e7ff2de
  • Add support for isBigInt type check to the prefer-type-error rule (#356) 186abd3
  • Refactor the prevent-abbreviations rule to handle more cases (#337) 9db361f

Fixes

  • Fix usage with eslint --stdin (#346) 5e7ac3e
  • Fix exception thrown in the catch-error-name rule (#363) 05641ba

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v10.0.0...v11.0.0

eslint-plugin-unicorn -

Published by sindresorhus about 5 years ago

Breaking

  • Require ESLint 6 (#331) bd9e00b

New rules

  • Add no-keyword-prefix rule (#282) 1982af5

Enhancements

  • Add checkFilenames option to the prevent-abbreviations rule (#336) 4c3d61c
  • Allow disabling of xo/no-abusive-eslint-disable via a comment (#308) 0fb6fcf
  • prefer-flat-map: Report for common concat pattern (#323) c2b8e76

Fixes

  • Fix exception sometimes thrown in "no-for-loop" in ES5 mode (#340) 9b076e2
  • Fix ESLint default filename (#335) e83f8ed
  • Fix false positives in the no-fn-reference-in-iterator rule (#281) 7410a1e

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v9.1.1...v10.0.0

eslint-plugin-unicorn -

Published by sindresorhus over 5 years ago

  • prefer-node-append: Only fix when expression is not used (#321) d62666d

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v9.1.0...v9.1.1

Package Rankings
Top 0.62% on Npmjs.org
Top 9.55% on Proxy.golang.org
Top 19.29% on Repo1.maven.org
Badges
Extracted from project README
Coverage Status npm version