You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
interfaceIAdicionarItem{autor: string;// these 3 items were sorted alphabetically by vscode (no tslint was used for this), here it is right.título: string;// i with accent type: 'ADICIONAR_ITEM';}exportconstadicionarItem=(autor: string,título: string): IAdicionarItem=>({
autor,
título,// "i" with accent should still come before "y"type: 'ADICIONAR_ITEM',// [tslint] The key 'type' is not sorted alphabetically (object-literal-sort-keys)});
I could make a PR if this. I'd like to know if using localeCompare() for all sorting would be an acceptable solution, or if adding an option to use this as the sort function would be preferable.
I think its probably preferable to add an option for this to avoid throwing errors on code that was previously "correct". In the next major version we can turn on the option by default.
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Words with accents must be in the end so there is no error / warning in TSLint
Expected behavior
Items should be sorted alphabetically considering accents without any TSLint error / warning
The text was updated successfully, but these errors were encountered: