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

fix: hide warnings about memory leaks #44

Merged
merged 1 commit into from Apr 21, 2019
Merged

fix: hide warnings about memory leaks #44

merged 1 commit into from Apr 21, 2019

Conversation

sawa-zen
Copy link
Contributor

@sawa-zen sawa-zen commented Apr 17, 2019

A warning was issued to set setMaxListeners from EventEmitter, and I fixed to hide the warning.

↓example

$ npm run lint

> ci-eslint@1.0.0 lint /Users/sawa-zen/develop/sandbox/ci-eslint
> eslint --ext .js,.vue --ignore-path .gitignore .

(node:92395) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 VElement listeners added. Use emitter.setMaxListeners() to increase limit

@@ -63,7 +63,9 @@ export function define(rootAST: ESLintProgram): ParserServices {

// If this is the first time, initialize the intermediate event emitter.
if (emitter == null) {
emitters.set(rootAST, (emitter = new EventEmitter()))
emitter = new EventEmitter()
emitter.setMaxListeners(0)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, where ai find this file? I'm this error later install the plugin eslint-config-vuetify. thanks

Copy link
Member

@mysticatea mysticatea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

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

Successfully merging this pull request may close these issues.

None yet

3 participants