eslint-plugin-return-type

1.0.31 • Public • Published

eslint-plugin-return-type

ESlint plugin to enforces the access of specific return types.

NOTE: eslint-plugin-return-type uses tsconfig, tsconfig.json must be present.

Installation

npm install eslint-plugin-return-type --save-dev

Supported Rules

  • enforce-access
    • typeNames: string[]
      • Type name to enforce access

Usage

.eslintrc:

"plugins": [
  "return-type",
],
"rules": {
  "return-type/enforce-access": [
    "error",
    { "typeNames": ["SomeType", "\w*Error"] }
}

License

MIT

Package Sidebar

Install

npm i eslint-plugin-return-type

Weekly Downloads

1,649

Version

1.0.31

License

MIT

Unpacked Size

13 kB

Total Files

12

Last publish

Collaborators

  • eringi_v3
  • deepblue-will
  • yoshiko
  • keita_moromizato
  • mayahjp
  • huang_yuwei
  • otofu-square
  • hori-ryota
  • nakajmg
  • jinjor
  • zi-dot
  • mgmgshake
  • satoshikawabata