1.2.2 ā€¢ Published 5 years ago

tslint-eslint-rules-recommended v1.2.2

Weekly downloads
769
License
MIT
Repository
github
Last release
5 years ago

npm version dependencies total downloads License

tslint-eslint-rules-recommended

Recommended ESLint rules for tslint-eslint-rules. Inspired by ESLint Recommended rules eslint:recommended rules and tslint-eslint-rules project that ports most of them.

šŸ¤” How to use?

Install the dependency

npm i tslint-eslint-rules-recommended --save-dev

Use it in your tslint.json file

{
  "extends": ["tslint-eslint-rules-recommended"]
}

šŸ¤“ Available rules

If you want, you can extend or modify the recommended rules:

{
  "extends": ["tslint-eslint-rules-recommended"],
  "rules": {
    "valid-typeof": false
  }
}

In addition to Palantir rules you can use tslint-eslint-rules.

Rules

āœ… Recommended rules enabled (ESLint recommended rules) āœ…

RuleOrigin
no-cond-assignTSLint "no-conditional-assignment"
no-consoleTSLint "no-console"
no-constant-conditiontslint-eslint-rules
no-control-regextslint-eslint-rules
no-debuggerTSLint "no-debugger"
no-duplicate-casetslint-eslint-rules
no-empty-character-classtslint-eslint-rules
no-emptyTSLint "no-empty"
no-ex-assigntslint-eslint-rules
no-extra-boolean-casttslint-eslint-rules
no-extra-semitslint-eslint-rules
no-fallthroughTSLint "no-switch-case-fall-through"
no-inner-declarationstslint-eslint-rules
no-invalid-regexptslint-eslint-rules
no-irregular-whitespacetslint-eslint-rules
no-mixed-spaces-and-tabstslint-eslint-rules
no-redeclareTSLint "no-duplicate-variable"
no-regex-spacestslint-eslint-rules
no-sparse-arraystslint-eslint-rules
no-unsafe-finallyTSLint "no-unsafe-finally"
no-unused-varsTSLint "no-unused-variable"
use-isnanTSLint "use-isnan"
valid-typeoftslint-eslint-rules
padded-blockstslint-eslint-rules

You can add more ESLint rules using tslint-eslint-rules project ported rules.

šŸš« Next rules are not currently available: šŸš«

RuleReason
constructor-superNot Applicable to TypeScript
for-directionUnavailable
getter-returnUnavailable
no-case-declarationsUnavailable
no-class-assignUnavailable
no-compare-neg-zeroUnavailable
no-const-assignNot Applicable to TypeScript
no-delete-varNot Applicable to TypeScript
no-dupe-argsNot Applicable to TypeScript
no-dupe-class-membersNot Applicable to TypeScript
no-dupe-keysNot Applicable to TypeScript
no-empty-patternUnavailable
no-func-assignNot Applicable to TypeScript
no-global-assignUnavailable
no-new-symbolUnavailable
no-obj-callsNot Applicable to TypeScript
no-octalNot Applicable to TypeScript
no-self-assignUnavailable
no-this-before-superNot Applicable to TypeScript
no-undefNot Applicable to TypeScript
no-unreachableNot Applicable to TypeScript
no-unsafe-negationUnavailable
no-unused-labelsUnavailable
no-useless-escapeUnavailable
require-yieldUnavailable

šŸš§ TSLint Future Notice

TSLint is an active and updated project, but if you are into linters you should read TSLint in 2019 post to know more about the upcoming changes.

I'll continue the maintenance of this repo as long as TSLint is the main TypeScript linter.

License

MIT License - read LICENSE for full details.