We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I initialize FlowRouterMeta: new FlowRouterMeta(FlowRouter); new FlowRouterTitle(FlowRouter);
new FlowRouterMeta(FlowRouter); new FlowRouterTitle(FlowRouter);
Then eslint complains about it:
error Do not use 'new' for side effects no-new
Is there an other way to do this?
Thank you!
The text was updated successfully, but these errors were encountered:
Hello @floek ,
Don't worry about it, just a warning. If it's too annoying for you simply assign it to some var:
const frPlugins = { meta: new FlowRouterMeta(FlowRouter), title: new FlowRouterTitle(FlowRouter) };
It may warn you what frPlugins defined, but not used :)
frPlugins
Sorry, something went wrong.
Could we close this one? //cc @mksh-su
Hi,
yes thanks.
floek
No branches or pull requests
ESLint doesn't like "new"
I initialize FlowRouterMeta:
new FlowRouterMeta(FlowRouter); new FlowRouterTitle(FlowRouter);
Then eslint complains about it:
Is there an other way to do this?
Thank you!
The text was updated successfully, but these errors were encountered: