tslint-object-literal-smart-keys

0.3.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tslint-object-literal-smart-keys

Weekly Downloads

3

Version

0.3.0

License

MIT

Last publish

Collaborators

  • arusakov