-
Notifications
You must be signed in to change notification settings - Fork 889
Stop using object-literal-sort-keys
#2583
Comments
omg please remove this. I can't even get the disabling to work well in vscode. To me, the ordering of imports is personal and up to the dev. |
I would suggest to add a |
I can't imagine anyone wanting this rule turned on without an auto-fix for it ...? Would a feature-request bug to create the auto-fix for object-literal-sort-keys be helpful? |
We generally accept auto-fixer contributions for all rules, so a separate Github issue tracking it is not necessary. Note that this original ticket was filed to track the enabling of |
Auto-fixer for |
I personally don't like this rule because sometimes it's not intuitive to write keys in alphabetical order. As an example if there is a schedule object, |
Is there any way to turn that... "feature" off? update: just found that adding |
any idea why this config would still have the rule applying and preventing me from compiling? {
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"linterOptions": {
"exclude": ["config/**/*.js", "node_modules/**/*.ts"]
},
"rules": {
"object-literal-sort-keys": false,
"no-console": false
},
"jsRules": {
"object-literal-sort-keys": false
}
} |
The rationale behind |
The discussion here has gotten a little off topic 😊 closing for housekeeping purposes. tl;dr:
|
This rule is disabled in 133 files! Wouldn't it be easier to just disable it in the config?
The text was updated successfully, but these errors were encountered: