question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Definition for rule 'react/wrap-multilines' was not found

See original GitHub issue

I’m getting this error using eslint-plugin-react v7.3.0. I understand this is supposed to be a deprecated rule, so why am I getting this error?

Errors:
  1  https://google.com/#q=react%2Fwrap-multilines
 @ ./src/common/index.js 16:14-33
 @ ./src/app/App.jsx
 @ ./src/main.jsx
 @ multi webpack-hot-middleware/client?reload=true?path=http://localhost:5000/__webpack_hmr react-hot-loader/patch babel-polyfill ./src/main.jsx

ERROR in ./src/main.jsx

  ✘  https://google.com/#q=react%2Fwrap-multilines  Definition for rule 'react/wrap-multilines' was not found
  src/main.jsx:1:1
  import React from 'react';
   ^


✘ 1 problem (1 error, 0 warnings)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
ljharbcommented, Sep 11, 2017

The rule is jsx-wrap-multilines, not wrap-multilines. Your eslintrc has an error.

3reactions
goodbombcommented, Sep 11, 2017

Looks like it was a different rule entirely that was causing this issue. Weird.

I needed "react/jsx-tag-spacing": [2, { "beforeSelfClosing": "always" }], instead of "react/jsx-space-before-closing": [2, "always"],

Your suggestion of running eslint directly seems to have done the trick. Thanks for the tip.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Definition for rule 'react/wrap-multilines' was not found #1424
I'm getting this error using eslint-plugin-react v7.3.0. I understand this is supposed to be a deprecated rule, so why am I getting this...
Read more >
Definition for rule 'react/require-extension' was not found
When I open index.js from Atom.I am getting error such as "definition for rule 'react/require-extension' was not found" top of the code line ......
Read more >
eslint-plugin-react - npm Package Health Analysis - Snyk
We found that eslint-plugin-react demonstrates a positive version release cadence with at least one new version released in the past 3 months. As...
Read more >
eslint-plugin-react - npm
React specific linting rules for ESLint. Latest version: 7.31.11, ... react/no-multi-comp, Prevent multiple component definition per file.
Read more >
eslint-plugin-react/README.md - UNPKG
126, | | | [react/default-props-match-prop-types](docs/rules/default-props-match-prop-types.md) | Enforce all defaultProps are defined and not "required" in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found