tslint-object-literal-smart-keys
v0.3.0
Published
Rule for tslint
Downloads
1
Readme
object-literal-smart-keys
TSLint rule for ordering object literal keys like in corresponding type of interface.
See tests for info about provided checkings.
Install
npm i -D tslint-object-literal-smart-keys
Example tslint.json
{
"rulesDirectory": [
"./node_modules/tslint-object-literal-smart-keys/rules"
],
"rules" {
"object-literal-sort-keys": false, // don't forget disable it!
"object-literal-smart-keys": true
}
}
Roadmap
- Complicated cases