eslint-plugin-return-type

1.0.17 • 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

581

Version

1.0.17

License

MIT

Unpacked Size

12.7 kB

Total Files

12

Last publish

Collaborators

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