@putout/plugin-apply-as-type-assertions
putout plugin adds ability to apply as type assertion
Last updated 3 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-apply-as-type-assertions 
SYNC missed versions from official npm registry.

@putout/plugin-apply-as-type-assertions NPM version

🐊Putout plugin adds ability to apply as type assertion according to best practices. Moved to @putout/plugin-typescript.

Install

npm i @putout/plugin-apply-as-type-assertions

Rule

Rule apply-as-type-assertions is not bundled by default, to enable add to .putout.json:

Rule

{
    "rules": {
        "apply-as-type-assertions": "on"
    }
}

❌ Incorrect code example

const boundaryElement = <HTMLElement>e.target;

✅ Correct code Example

const boundaryElement1 = e.target as HTMLElement;

License

MIT

Current Tags

  • 1.1.3                                ...           latest (3 years ago)

6 Versions

  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE