eslint-plugin-perfectionist

🦄 ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.

MIT License

Downloads
1.3M
Stars
1.6K

Bot releases are visible (Hide)

eslint-plugin-perfectionist - v1.2.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Support stylus file imports  -  by @azat-io (dbef4)
  • Add sort-exports rule  -  by @azat-io (a71ee)
    View changes on GitHub
eslint-plugin-perfectionist - v1.1.2

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Fix sorting interfaces and types with comment on same line  -  by @azat-io (03e55)
    View changes on GitHub
eslint-plugin-perfectionist - v1.1.1

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Fix adding extra lines if import ends with semi  -  by @azat-io (e435f)
  • Don't sort keys if right value depends on left  -  by @azat-io (3e987)
  • Ignore semi at the end of object type member value  -  by @azat-io (623ac)
    View changes on GitHub
eslint-plugin-perfectionist - v1.1.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Add style group to sort the imports  -  by @azat-io (05bf0)
  • Add side-effect group to sort the imports  -  by @azat-io (02f51)
  • Add builtin-type group to sort the imports  -  by @azat-io (ca34b)

   🐞 Bug Fixes

  • Allow to sort destructured objects  -  by @azat-io (65fe6)
    View changes on GitHub
eslint-plugin-perfectionist - v1.0.1

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Do not sort enums with implicit values  -  by @azat-io (166ed)
    View changes on GitHub
eslint-plugin-perfectionist - v1.0.0

Published by github-actions[bot] over 1 year ago

   🎉 Stable release

    View changes on GitHub
eslint-plugin-perfectionist - v0.11.6

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Improve sort-imports fix function  -  by @azat-io (e7a39)
    View changes on GitHub
eslint-plugin-perfectionist - v0.11.5

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Fix sorting objects with inline comments  -  by @azat-io (37a53)
  • Split imports if there are other nodes between  -  by @azat-io (b1a88)
    View changes on GitHub
eslint-plugin-perfectionist - v0.11.4

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Use service comments when sorting imports  -  by @azat-io (b577a)
  • Fix sorting nodes with comments on the same line  -  by @azat-io (16887)
  • Do not fix objects if last member contains a comment and doesn't contain comma  -  by @azat-io (a9915)
    View changes on GitHub
eslint-plugin-perfectionist - v0.11.3

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Fix working sort-map-elements with empty map  -  by @azat-io (de061)
  • Disallow to sort default import specifiers  -  by @azat-io (60044)
  • Do not sort imports if there are tokens between them  -  by @azat-io (a4fab)
    View changes on GitHub
eslint-plugin-perfectionist - v0.11.2

Published by github-actions[bot] over 1 year ago

   🏎 Performance Improvements

  • Do not compute options if rule is not use  -  by @azat-io (4574c)

   🐞 Bug Fixes

  • Fix single line type objects sorting  -  by @azat-io (aaa44)
    View changes on GitHub
eslint-plugin-perfectionist - v0.11.1

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Fix option names in sort-classes in configs  -  by @azat-io (bf578)
    View changes on GitHub
eslint-plugin-perfectionist - v0.11.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Add sort-object-types rule  -  by @azat-io (e3a06)
  • Add sort-classes rule  -  by @azat-io (b3a0c)

   🐞 Bug Fixes

  • Fix multiline option value in sort-jsx-props rule in configs  -  by @azat-io (55669)
  • Improve error output  -  by @azat-io (c1ad2)
  • Fix internal patter in configs  -  by @azat-io (4be8a)
    View changes on GitHub
eslint-plugin-perfectionist - v0.10.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Add read-tsconfig option to sort-imports rule  -  by @azat-io (84cfc)
  • Allow to ignore interface by pattern  -  by @azat-io (9aaf0)
  • Add ignore-case option to each rule  -  by @azat-io (e331b)
  • Rename spread-last option in sort-array-includes rule to kebab case  -  by @azat-io (fc342)
  • Add shorthand position option to sort-jsx-props rule  -  by @azat-io (416ff)
  • Add callback position option to sort-jsx-props rule  -  by @azat-io (8c618)
  • Add multiline position option to sort-jsx-props rule  -  by @azat-io (58e09)
  • Add always-on-top option to sort-jsx-props rule  -  by @azat-io (57af3)
  • Rename sort-object-keys rule to sort-objects  -  by @azat-io (3340a)
  • Add always-on-top option to sort-objects rule  -  by @azat-io (46410)

   🏎 Performance Improvements

  • Make reading tsconfig singleton  -  by @azat-io (c7484)
  • Improve sort-imports rule performance  -  by @azat-io (29895)

   🐞 Bug Fixes

  • Fix groups in sort-imports rule in configs  -  by @azat-io (f83c4)
  • Move parentheses when sorting  -  by @azat-io (d0939)
  • Update peer deps  -  by @azat-io (800c2)
    View changes on GitHub
eslint-plugin-perfectionist - v0.9.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Add sort-imports rule  -  by @azat-io (e3ed1)

   🐞 Bug Fixes

  • Keep code comments when sorting  -  by @azat-io (547f8)
  • Update url to documentation of rules  -  by @azat-io (423b1)
    View changes on GitHub
eslint-plugin-perfectionist - v0.8.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Add sort-enums rule  -  by @azat-io (47167)

   🐞 Bug Fixes

  • Fix defenition for rule not found error  -  by @azat-io (050d2)
    View changes on GitHub
eslint-plugin-perfectionist - v0.7.0

Published by github-actions[bot] over 1 year ago

   🐞 Bug Fixes

  • Fix plugin configs creation  -  by @azat-io (559a2)
    View changes on GitHub
eslint-plugin-perfectionist - v0.6.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Support flat eslint config  -  by @azat-io (969ae)
  • Add sort-object-keys rule  -  by @azat-io (6dcb4)
  • Add recommended-alphabetical config  -  by @azat-io (66c99)
    View changes on GitHub
eslint-plugin-perfectionist - v0.5.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Add sort-map-elements rule  -  by @azat-io (049c0)
  • Add sort-array-includes rule  -  by @azat-io (bb760)

   🐞 Bug Fixes

  • Fix rules descriptions  -  by @azat-io (1d18a)
  • Add default rules properties  -  by @azat-io (48d28)
  • Add array constructor support to sort-array-includes rule  -  by @azat-io (d255c)
  • Fix interface sorting  -  by @azat-io (86e3b)
    View changes on GitHub
eslint-plugin-perfectionist - v0.4.0

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Add sort-named-exports rule  -  by @azat-io (b3f4b)

   🐞 Bug Fixes

  • Fix rule configs creation  -  by @azat-io (8a437)
  • Fix missed sort-union-types rule export  -  by @azat-io (3b026)
    View changes on GitHub
Package Rankings
Top 1.87% on Npmjs.org
Top 6.75% on Proxy.golang.org
Badges
Extracted from project README
Version Monthly Download Code Coverage GitHub License