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 - v2.11.0 Latest Release

Published by github-actions[bot] 4 months ago

   🚀 Features

  • Update svelte  -  by @tkhs0813 (861a3)
  • sort-classes: Add custom-group to sort-classes rule  -  by @gustavopedroni (1773f)
    View changes on GitHub
eslint-plugin-perfectionist - v2.10.0

Published by github-actions[bot] 6 months ago

   🚀 Features

  • Allow typescript-eslint v7  -  by @JoshuaKGoldberg (ccdae)

   🐞 Bug Fixes

  • sort-imports: Empty named imports being considered side-effect imports  -  by @hampus-stravito (ca690)
    View changes on GitHub
eslint-plugin-perfectionist - v2.9.0

Published by github-actions[bot] 6 months ago

   🚀 Features

  • Add sort-intersection-types rule  -  by @JoshuaKGoldberg (3ad40)
  • Use preserve modules for package build  -  by @azat-io (be13a)

   🐞 Bug Fixes

  • Sort-objects ignore-pattern add property type  -  by @KID-joker (3de39)
  • sort-exports: Work with star exports  -  by @chirokas (ce766)
    View changes on GitHub
eslint-plugin-perfectionist - v2.8.0

Published by github-actions[bot] 7 months ago

   🚀 Features

  • sort-interfaces: Add optionalityOrder option  -  by @chirokas (e142c)

   🐞 Bug Fixes

  • Convert optionalityOrder to kebab case  -  by @chirokas (77262)
    View changes on GitHub
eslint-plugin-perfectionist - v2.7.0

Published by github-actions[bot] 7 months ago

   🚀 Features

  • Add group-kind option on sort-named-imports and sort-named-exports  -  by @renato-bohler (eb784)
  • sort-enums: Add partition-by-comment option  -  by @chirokas (ec3d1)
    View changes on GitHub
eslint-plugin-perfectionist - v2.6.0

Published by github-actions[bot] 8 months ago

   🚀 Features

  • sort-classes: Add decorators support  -  by @chirokas (cbe3f)
    View changes on GitHub
eslint-plugin-perfectionist - v2.5.0

Published by github-actions[bot] 11 months ago

   🚀 Features

  • Add ignore-pattern option for sort-objects rule  -  by @azat-io (ac5b2)
    View changes on GitHub
eslint-plugin-perfectionist - v2.4.2

Published by github-actions[bot] 11 months ago

   🐞 Bug Fixes

  • Fix cjs plugin usage  -  by @azat-io (12934)
    View changes on GitHub
eslint-plugin-perfectionist - v2.4.1

Published by github-actions[bot] 11 months ago

   🐞 Bug Fixes

  • Fix output with a large number of groups  -  by @azat-io (6847e)
    View changes on GitHub
eslint-plugin-perfectionist - v2.4.0

Published by github-actions[bot] 11 months ago

   🚀 Features

  • Add side-effect-style import group  -  by @azat-io (32dbe)
    View changes on GitHub
eslint-plugin-perfectionist - v2.3.0

Published by github-actions[bot] 11 months ago

   🚀 Features

  • Add max line length option for multiline imports sorting  -  by @tthornton3-chwy (4b813)
  • Add partition by new line option to sort-objects rule  -  by @azat-io (8654e)
  • Add partition by new line option to sort-interfaces rule  -  by @azat-io (48532)
  • Add partition by new line option to sort-object-typea rule  -  by @azat-io (563c8)
    View changes on GitHub
eslint-plugin-perfectionist - v2.2.0

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

   🚀 Features

  • Add ignore-alias option to sort-named-imports rule  -  by @azat-io (4ad56)

   🐞 Bug Fixes

  • Side-effect import with an internal pattern are defined as internal module in sort-imports rule  -  by @Wondermarin (b6f4e)
  • Improve recognition of external modules  -  by @azat-io (a22ea)
    View changes on GitHub
eslint-plugin-perfectionist - v2.1.0

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

   🚀 Features

  • Add static-private-method group for sort-classes rule  -  by @azat-io (37512)
  • Support bun builtin modules in sort-imports rule  -  by @azat-io (37bca)

   🐞 Bug Fixes

  • Allow internal imports starting with a hash character  -  by @azat-io (f35de)
    View changes on GitHub
eslint-plugin-perfectionist - v2.0.1

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

   🐞 Bug Fixes

  • Prefix-only builtin modules are defined as external modules in sort-imports rule  -  by @Wondermarin (92b72)
    View changes on GitHub
eslint-plugin-perfectionist - v2.0.0

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

   🚨 Breaking Changes

  • Rename sort-map-elements rule to sort-maps  -  by @azat-io (d3719)
  • Remove read-tsconfig option in sort-imports rule  -  by @azat-io (cccce)
  • Move callback, multiline and shorthand opts to groups in sort-jsx-props rule  -  by @azat-io (10d35)
  • Move from always-on-top option to groups in sort-objects rule  -  by @azat-io (0bbcb)

   🚀 Features

  • Add sort-svelte-attributes rule  -  by @azat-io (40929)
  • Add sort-astro-attributes rule  -  by @azat-io (036b4)
  • Allow disabling sort-objects rule for styled-components  -  by @azat-io (70f2a)
  • Add sort-vue-attributes rule  -  by @azat-io (e0312)
  • Add groups option to sort-interfaces rule  -  by @azat-io (903c0)
  • Add groups options in sort-object-types rule  -  by @azat-io (a219f)
  • Replace is-core-module dependency with builtin module  -  by @azat-io (e190c)
  • Move to typescript-eslint v6  -  by @azat-io (9c612)
  • Add option in sort-union-types rule to put null and undefined types at end  -  by @azat-io (b313b)
  • Add index-signature group to sort-classes rule  -  by @azat-io (f857b)
  • Add get and set methods groups to sort-classes rule  -  by @azat-io (73132)

   🐞 Bug Fixes

  • Disable sorting enums with implicit values  -  by @azat-io (f4a0e)
  • Ignore string quotes in sort-array-includes rule  -  by @azat-io (ec2e2)
  • Handle more complex expressions in sort-objects  -  by @stovmascript (a7d96)
  • Set alphabetical sorting as default in sort-svelte-attributes rule  -  by @azat-io (b2244)
  • Fix sorting single line union type with comment at end  -  by @azat-io (95560)
  • Fix sorting class overloads  -  by @azat-io (c4939)
  • Fix loading default options for configs  -  by @azat-io (ef99f)
  • Disable sort-jsx-props for vue, astro and svelte files  -  by @azat-io (afb6e)
  • Improve determinition of static fields in sort-classes rule  -  by @azat-io (c00ac)
  • Prevent order changes when adding new elements in line-length sorting  -  by @azat-io (c0e2e)
    View changes on GitHub
eslint-plugin-perfectionist - v1.5.1

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

   🐞 Bug Fixes

  • Use alphabetical as the default sort type in schemas  -  by @haocheng6 (3b936)
  • Disable sorting side-effect imports  -  by @azat-io (01da8)
    View changes on GitHub
eslint-plugin-perfectionist - v1.5.0

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

   🚀 Features

  • Add external-type import group  -  by @azat-io (47b07)

   🐞 Bug Fixes

  • Don't sort ts call signature declarations in interfaces  -  by @azat-io (5829a)

   🏎 Performance Improvements

  • Move from foreach to for loops  -  by @azat-io (b648f)
  • Move from reduce to for loops in sort-imports  -  by @azat-io (16f63)
    View changes on GitHub
eslint-plugin-perfectionist - v1.4.0

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

   🚀 Features

  • Allow separating object properties into logical parts  -  by @azat-io (933b6)
    View changes on GitHub
eslint-plugin-perfectionist - v1.3.0

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

   🚀 Features

  • Support custom import groups  -  by @azat-io (0b837)
    View changes on GitHub
eslint-plugin-perfectionist - v1.2.1

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

   🐞 Bug Fixes

  • Fix removing extra spaces between imports  -  by @azat-io (21bc7)
    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