-
-
Save Rogdham/115af1a13d47f1e70187a66dbb95a5cd to your computer and use it in GitHub Desktop.
Case for crash on ESLint with react/no-adjacent-inline-elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"plugins": ["react"], | |
"rules": { | |
"react/no-adjacent-inline-elements": "error" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require("react"); | |
function App() { | |
return React.createElement("div", null, "Hello"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"lint": "eslint case.js" | |
}, | |
"dependencies": { | |
"react": "16.13.1" | |
}, | |
"devDependencies": { | |
"eslint": "6.8.0", | |
"eslint-plugin-react": "7.19.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment