infctr / eslint-plugin-typescript-sort-keys

A linter plugin to require sorting interface and string enum keys
ISC License
143 stars 25 forks source link

Custom order to specific attributes - Ex. "id" #71

Open IanTorquato opened 8 months ago

IanTorquato commented 8 months ago

I was searching, but I didn't find an option to leave the id at the top, as in this example: https://github.com/prash471/eslint-plugin-typescript-custom-sort-keys#example

{
  id: number;

  name: string;
  age: number;

  phone?: string;
};