Definition for rule 'react/wrap-multilines' was not found
See original GitHub issueI’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:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The rule is
jsx-wrap-multilines
, notwrap-multilines
. Your eslintrc has an error.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.