TypeStat icon indicating copy to clipboard operation
TypeStat copied to clipboard

chore(deps): update dependency eslint-plugin-perfectionist to v2.10.0

Open rubiesonthesky opened this issue 1 year ago • 0 comments

PR Checklist

Overview

Supersedes https://github.com/JoshuaKGoldberg/TypeStat/pull/1582. This includes the lint fixes.

I'm not sure I think most of change are improvements here. It would more sense to keep existing way for some of them. So maybe it would be better to turn perfectionist/sort-intersection-types rule off for now? 🤔 I think it sort named types first and then add {} part. (Also see https://github.com/azat-io/eslint-plugin-perfectionist/issues/143 and https://github.com/azat-io/eslint-plugin-perfectionist/issues/128 - so there may be new config options later)

For example: NodeWithIdentifierName

It was:

export type NodeWithIdentifierName = ts.Node & {
	name: ts.Identifier;
};

And now it is:

export type NodeWithIdentifierName = {
	name: ts.Identifier;
} & ts.Node;

But that aside, this PR fixes the lint errors so we can update the eslint plugin :)

rubiesonthesky avatar May 04 '24 17:05 rubiesonthesky