[explicit-module-boundary-types] considers "protected" members as public boundaries #2430
Closed
3 tasks done
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
working as intended
Issues that are closed as they are working as intended
The rule considers
protected
class methods aspublic
, which contradicts the description in the plugin's docs:It's probably a matter of debate whether
protected
functions should be considered "exported" and I think the best solution would be to have this configurable.This rule is generally pretty annoying, as it requires putting
: void
next to methods that don't return anything, but that's perhaps for another issue.Repro
Versions
@typescript-eslint/eslint-plugin
3.9.1
@typescript-eslint/parser
3.9.1
TypeScript
3.9.7
ESLint
7.7.0
node
v12.18.2
The text was updated successfully, but these errors were encountered: