tslint-gandalf-rules

0.0.10 • Public • Published

NPM

tslint-rules

A set of custom TSLint rules.

Usage

Install from npm to your devDependencies:

npm install --save-dev tslint-gandalf-rules

Configure tslint to use the custom-tslint-rules folder:

Add the following path to the rulesDirectory setting in your tslint.json file:

{
   "extends": [
     "tslint-gandalf-rules"
   ],
   "rules": {
     ...
   }
}

Now configure some of the new rules.

Available Rules

arrow-function-class-prop

prevent from creating arrow functions as class property

Rationale:

Usage:

...
"rules"{
  "arrow-function-class-prop": true
}
...

Options:

No options at the moment

no-function-as-input

prevent from passing function as an input to Angular component

Rationale:

Usage:

...
"rules"{
  "no-function-as-input": true
}
...

Options:

No options at the moment

Contributions and Development

Issue reports and pull requests are highly welcome! Please make sure to provide sensible tests along with your pull request.

To get started with development, clone the project and run yarn install. To run the tests execute yarn test.

Readme

Keywords

Package Sidebar

Install

npm i tslint-gandalf-rules

Weekly Downloads

1

Version

0.0.10

License

MIT

Unpacked Size

9.74 kB

Total Files

7

Last publish

Collaborators

  • mprzybylski