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

BREAKING: make lintText into a sync method #157

Merged
merged 1 commit into from
Feb 21, 2017
Merged

BREAKING: make lintText into a sync method #157

merged 1 commit into from
Feb 21, 2017

Conversation

feross
Copy link
Member

@feross feross commented Feb 21, 2017

Fixes: #156

Before: standardEngine.lintText(text, [opts], callback)
After: results = standardEngine.lintText(text, [opts])

If an error occurs, an exception is thrown. Otherwise, a results
object is returned.

Fixes: #156

Before: standardEngine.lintText(text, [opts], callback)
After: results = standardEngine.lintText(text, [opts])

If an error occurs, an exception is thrown. Otherwise, a `results`
object is returned.
@Flet Flet merged commit 1b9b226 into master Feb 21, 2017
@tunnckoCore
Copy link

Great that lands so fast!

@mightyiam
Copy link
Member

Both of the methods are synchronous in ESLint:
http://eslint.org/docs/developer-guide/nodejs-api#executeonfiles

@tunnckoCore
Copy link

@mightyiam yea, i thought to mention that too.

@feross
Copy link
Member Author

feross commented Feb 21, 2017

@mightyiam We do extra work on top of what eslint does, and that work is async.

@feross feross deleted the linttext branch February 21, 2017 19:42
@mightyiam
Copy link
Member

mightyiam commented Feb 21, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add lintTextSync method?
4 participants