1.0.17 • Published 16 days ago

eslint-plugin-return-type v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

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

1.0.17

16 days ago

1.0.16

2 months ago

1.0.15

3 months ago

1.0.14

4 months ago

1.0.13

5 months ago

1.0.11

7 months ago

1.0.12

6 months ago

1.0.10

8 months ago

1.0.9

9 months ago

1.0.8

10 months ago

1.0.7

11 months ago

1.0.6

12 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago