ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / sort-class-members
Sorts class members by type and alphabetically inside each type group.
Type groups:
module.exports = {
plugins: ["misc"],
rules: {
"misc/sort-class-members": [
"error",
{
sortingOrder: string[]
}
]
}
};
| Option | Description | Default | | :—– | :———- | :—— |
sortingOrder |
Sorting order | [] |
class SampleClass {
z;
y;
x;
}
class SampleClass {
x;
y;
z;
}