Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: add documentation for Linter methods (refs #6525) #9151

Merged
merged 1 commit into from Aug 30, 2017

Conversation

not-an-aardvark
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[x] Documentation update

What changes did you make? (Give an overview)

This adds documentation for the new APIs that were added in #6525, as well as a few other Linter methods that are undocumented.

The other methods on Linter.prototype (reset, report, getSourceCode, getAncestors, getScope, markVariableAsUsed, getFilename, defaults, getDeclaredVariables, the external methods here, and the methods on EventEmitter.prototype) are not intended to be used by Node.js API users, and are only exposed incidentally, so I didn't document them. Eventually I'd like to remove them and/or rename them to make it clear that they're private. It would also be nice to keep linter.verify as a pure function, but it currently modifies some internal state which is visible through those private methods.

Is there anything you'd like reviewers to focus on?

Nothing in particular

@not-an-aardvark not-an-aardvark added the documentation Relates to ESLint's documentation label Aug 24, 2017
@eslintbot
Copy link

LGTM

@mention-bot
Copy link

@not-an-aardvark, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nzakas, @gyandeeps and @SimenB to be potential reviewers.

@not-an-aardvark not-an-aardvark merged commit de6dccd into master Aug 30, 2017
@not-an-aardvark not-an-aardvark deleted the document-new-apis branch August 30, 2017 08:18
btmills added a commit that referenced this pull request Sep 15, 2017
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 27, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion documentation Relates to ESLint's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants