How can I disable alphabetical ordering of members in object literal syntax?
Example:
function receiveLogin(user) {
return {
type: LOGIN_SUCCESS,
isFetching: false,
isAuthenticated: true,
id_token: user.id_token,
};
}
I want to have the type as the first item.
You should have "object-literal-sort-keys": false
in your tslint.json
rules.
Example:
{
"extends": "tslint:latest",
"rules": {
"object-literal-sort-keys": false
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With