eslint-plugin-typescript-sort-keys
eslint-plugin-typescript-sort-keys copied to clipboard
A linter plugin to require sorting interface and string enum keys
Hi, I'm receiving this error when I uncomment the interface rule in my eslint config. yarn 1.22.11 eslint 8.17.0 eslint-plugin-typescript-sort-keys 2.1.0 The offending line: `'typescript-sort-keys/interface': 'warn',` A sample of the...
Hi! I'm a maintainer on [typescript-eslint](https://typescript-eslint.io) and just stumbled onto this plugin from a feature request on the [typescript-eslint `member-ordering` rule](https://typescript-eslint.io/rules/member-ordering) (https://github.com/typescript-eslint/typescript-eslint/issues/4859). It looks like much of this plugin's functionality...
I like this plugin idea which will auto-fix the member ordering inside interface but seem it would conflict to [member-order](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-ordering.md) because this plugin don't care the member type E.G. given...
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4. Changelog Sourced from async's changelog. v2.6.4 Fix potential prototype pollution exploit (#1828) Commits c6bdaca Version 2.6.4 8870da9 Update built files 4df6754 update changelog 8f7f903...
I noticed that `string-enum` rule ignores comments, so if you have comments on the right like ``` enum Events { MyEvent2 = 'My Event 2' // my event 2 MyEvent1...
In very large and nested type definitions, I’ve noticed that this plugin needs up to 5 runs in order to fix all reported sorting issues. First time it finds ~3000,...
Currently, ```typescript UPDATE_OFFER_DETAIL: MaterialsState['offerDetail'] UPDATE_OFFERS_LIST: MaterialsState['offerList'] ``` gets sorted because `_` is considered to be after `S`. This unfortunately clashes with expectations and with other sorting extensions. IMO, the most...
```ts type Type1 = Partial & {/* %foo */ foo: boolean; // %baz baz: boolean; /** * %bar */ bar?: boolean; } & { [K in keyof TKey]: boolean; };...
What are your thoughts on a lint rule that enforces key sorting for type aliases? E.g. ```ts type Foo = { b: string; a: string; } ```
Similar to https://github.com/infctr/eslint-plugin-typescript-sort-keys/issues/42 It would be great to officially support ESLint v9.x now that it has been [released](https://eslint.org/blog/2024/04/eslint-v9.0.0-released/).