NaNoWriMo Promotes Manuscription
Miss any of our Open RFC calls?Watch the recordings here! »

tslint-prefer-case

1.0.2 • Public • Published

TSLint rules for members casing

Force typescript members case

You want to force PascalCase for enums, camelCase for strings?

This plugin includes set of rules for different member types!

Usage

Install from NPM to your Dev Dependencies

npm install --save-dev tslint-prefer-case

Or install from Yarn to your Dev Dependencies

yarn add tslint-prefer-case --dev

Configure TSLint to use tslint-prefer-case:

In your tslint.json file, source the rules from this package, e.g:

{
  "extends": ["tslint-prefer-case"],
  "rules": {
    "prefer-enum-case": [true, "pascal"]
  }
}

Contributing

Bugs, rules requests, doubts etc., open a Github Issue.

LICENSE

MIT

Install

npm i tslint-prefer-case

DownloadsWeekly Downloads

7

Version

1.0.2

License

MIT

Unpacked Size

6.06 kB

Total Files

6

Last publish

Collaborators

  • avatar