10.1.3 • Published 3 years ago

pgs-dev-tslint v10.1.3

Weekly downloads
127
License
ISC
Repository
github
Last release
3 years ago

alt text

PGS-dev-tslint

PGS standard tslint rules.

tslint.json file contains general rules for any TypeScript project.

tslint-rxjs.json file contains general rules for any TypeScript project with RxJS.

tslint-angular.json file contains general rules for any angular projects.

Optional rules

interface-name - forces interfaces to start with "I" prefix. It helps in some situations but it's not mandatory.

no-string-literal - there might be an issue with testing private methods etc.

object-literal-sort-keys - nice to have, but no auto fix -> time consuming

trailing-comma - can be set as the cfg below if you don't like trailing commas.

{
  true,
  {
    "multiline": "never",
    "singleline": "never"
  }
}

naming-convention - can be slightly adjusted per project depending on devs preferences

member-access - might be set to true if devs agree to always write "public" member access

whitespace - can be adjusted depending on devs preferences

How to use

Verify which version you need from the 3 versions available (tslint.json, tslint-rxjs.json, tslint-angular.json)

Update your project tslint.json to extend rules from the previously selected file.

Update tslint.json rules to overwrite optional official rules or add unofficial ones if needed.

10.1.3

3 years ago

10.1.2

4 years ago

10.1.1

4 years ago

10.1.0

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago