You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the publicOnly option is specified, the rule seems to be triggered for local functions within public members. E.g. an exported function contains (as an implementation detail) a local function used by its own logic.
Expected behavior
Local (nested) function should not trigger a linter failure if not documented (since it is not public)
Actual behavior
Local (nested) function triggers a linter failure when not documented (despite not being public)
ESLint Config
I was able to reproduce the issue with this minimal configuration:
When the
publicOnly
option is specified, the rule seems to be triggered for local functions within public members. E.g. an exported function contains (as an implementation detail) a local function used by its own logic.Expected behavior
Local (nested) function should not trigger a linter failure if not documented (since it is not public)
Actual behavior
Local (nested) function triggers a linter failure when not documented (despite not being public)
ESLint Config
I was able to reproduce the issue with this minimal configuration:
ESLint sample
Simple example of a local function triggering the rule.
eslint version: 7.12.1
eslint-plugin-jsdoc version: 30.7.6
The text was updated successfully, but these errors were encountered: