Skip to content

BIFIT/tslint-object-literal-smart-keys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%