@nothing-but/eslint-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

@nothing-but/eslint-plugin

no-ignored-return

If a function returns a value, then that value must be used.

TODO:

  • [x] nested methods utl.raf.makeAnimationLoop
  • [x] fn.apply() and fn.call() methods
  • [x] bool && returningFunc() expressions
  • [x] never doesn't need to be used
  • [ ] ignore super()
  • [ ] awaiting Promise<some_value>

no-return-to-void

If a callback should return void, then it should not return anything.

TODO:

  • [x] Arrow functions
  • [x] Anonymous functions
  • [x] Overloads
  • [x] Fix .then (unions)

ignore-void-return

If a function returns void, the return value shouldn't be used.

TODO TODO

no-unnecessary-instanceof

Values tested with instanceof should have a union type with the tested class as a member.

  • [ ] Allow extended types

no-ignored-params

Require that all callback parameters are used.

TODO:

  • [ ] implement

Resources:

Readme

Keywords

none

Package Sidebar

Install

npm i @nothing-but/eslint-plugin

Weekly Downloads

0

Version

0.2.3

License

MIT

Unpacked Size

18.1 kB

Total Files

20

Last publish

Collaborators

  • thetarnav.