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
When checking my files with npm run lint I get the following error :
npm run lint
\src\client.js 112:15 error JSX props should not use .bind() react-no-bind ? 1 problem <1 error, 0 warnings>
The line referring to this error ( render: render.bind(undefined, container, location.state ) ) :
UniversalRouter.resolve(routes, { path: location.pathname, query: location.query, state: location.state, context, render: render.bind(undefined, container, location.state), }).catch(err => console.error(err)); // eslint-disable-line no-console }
Any idea of why is this happening ?
Also, when I run "npm run lint" , at the end I get 2 errors with the code ELIFECYCLE :
node v6.2.2 npm v3.10.2 code ELIFECYCLE @ eslint: eslint src tools and @ link: npm run eslint && npm run stylelint
eslint src tools
npm run eslint && npm run stylelint
Could this be related ?
The text was updated successfully, but these errors were encountered:
render: render.bind(undefined, container, location.state),
in this situation you can just disable eslint rule for this line // eslint-disable-line react/jsx-no-bind
// eslint-disable-line react/jsx-no-bind
more about this rule here: rules/jsx-no-bind
Sorry, something went wrong.
Thank you, for those who have the same problem, here is the solution.
UniversalRouter.resolve(routes, { path: location.pathname, query: location.query, state: location.state, context, render: render.bind( // eslint-disable-line react/jsx-no-bind undefined, container, location.state ), }).catch(err => console.error(err)); // eslint-disable-line no-console
ref jsx-eslint/eslint-plugin-react#663
No branches or pull requests
When checking my files with
npm run lint
I get the following error :The line referring to this error ( render: render.bind(undefined, container, location.state ) ) :
Any idea of why is this happening ?
Also, when I run "
npm run lint
" , at the end I get 2 errors with the code ELIFECYCLE :node v6.2.2
npm v3.10.2
code ELIFECYCLE
@ eslint:
eslint src tools
and
@ link:
npm run eslint && npm run stylelint
Could this be related ?
The text was updated successfully, but these errors were encountered: