This package has been deprecated

Author message:

Deprecated

eslint-plugin-no-proptypes-in-ts

1.0.5 • Public • Published

eslint-plugin-no-proptypes-in-ts

Rules to prevent the use of proptypes in Typescript files.

Why?

  • Proptypes are useful when working with javascript mainly because it doesn't have static type checks
  • The usefulness of runtime type checks decreases as more of your codebase is in typescript
  • Proptypes and default props in typescript can be a pain and show hard to solve errors

In short: save for specific use cases, proptypes aren't worth maintaining in typescript.

Installation

Prerequisites

Install ESLint. ESLint installation instructions can be found here.

Plugin installation

Install eslint-plugin-no-proptypes-in-ts

npm i eslint-plugin-no-proptypes-in-ts --save-dev

Add the plugin to your .eslintrc configuration.

...
"plugins": [
    "no-proptypes-in-ts"
],
...

Configure the rules. More information

"rules": {
    "no-proptypes-in-ts/no-proptypes-in-ts": "error",
    ...
}

Page: https://github.com/JuanGaray93/no-proptypes-in-ts

Contributions more than welcome!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

Package Sidebar

Install

npm i eslint-plugin-no-proptypes-in-ts

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

3.97 kB

Total Files

6

Last publish

Collaborators

  • juangaray93