Email or username:

Password:

Forgot your password?
Azat S.

Released ESLint Plugin Perfectionist v3.0.0.

A plugin for sorting imports, objects, TS types, JSX, etc.

In the new version: ESLint plugin typings, new configurations, new rules, new docs website, and many improvements.

github.com/azat-io/eslint-plug

More details in the thread ⬇️

5 comments
Azat S.

Soon, ESLint will support TypeScript configs:

github.com/eslint/rfcs/pull/11

And in version 3 of ESLint Plugin Perfectionist, types have been added.

By the way, you can already use TS configs now with eslint-ts-patch:

github.com/antfu/eslint-ts-pat

Azat S.

All ESLint plugins strive to unify configs, rules and options. And in the new version some changes have been made.

The way of importing new “flat” configs has been changed, rule options have been renamed from kebab-case to camelCase, and internally the options have been unified.

Azat S.

Two new rules have been added to the plugin:

- sort-switch-case

- sort-variable-declarations

Also, around 40 issues were closed for this release. Many different features were added.

If you have any ideas for the plugin, create an issue on GitHub:

github.com/azat-io/eslint-plug

Azat S.

The plugin now has a new docs site.

perfectionist.dev

The site has been rewritten on Astro.

We now have a large number of interactive demos where you can see how the plugin works.

Most importantly, the documentation content has been rewritten to be accessible.

Azat S.

All interactive examples are written in Svelte. And for connecting “islands,” the NanoStores state manager works perfectly.

The code examples demonstrating the plugin’s functionality are written using Shiki Magic Move.

I would be grateful if you support this project by retweeting the thread. 💜

Go Up