Skip to content

Instantly share code, notes, and snippets.

@Rogdham
Created April 10, 2020 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rogdham/115af1a13d47f1e70187a66dbb95a5cd to your computer and use it in GitHub Desktop.
Save Rogdham/115af1a13d47f1e70187a66dbb95a5cd to your computer and use it in GitHub Desktop.
Case for crash on ESLint with react/no-adjacent-inline-elements
{
"plugins": ["react"],
"rules": {
"react/no-adjacent-inline-elements": "error"
}
}
var React = require("react");
function App() {
return React.createElement("div", null, "Hello");
}
{
"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