dillon1000/react

Commit

Upgrade to newer eslint, use esprima-fb

Eslint now allows us to use a different parser, which allows us to use
esprima-fb explicitly. This means we don't have to wait for espree to add
things like rest-param parsing. Though we do need eslint to upgrade its rules
to handle that AST.

I had hoped to enable parsing of our tests but we can't do that until we
change esprima-fb's XJS nodes to JSX.

While I was here, I also enabled the no-unused-vars rule since eslint
understands template strings. I also made the single quote enforcement
actually fail instead of just warn.
Browse files
Changed paths18 files
First-parent comparison
M .eslintignore ModifiedM package.json ModifiedM src/.eslintrc ModifiedM src/browser/eventPlugins/BeforeInputEventPlugin.js ModifiedM src/browser/eventPlugins/SimpleEventPlugin.js ModifiedM src/browser/ui/ReactDOMComponent.js ModifiedM src/browser/ui/ReactDOMTextComponent.js ModifiedM src/browser/ui/dom/DOMPropertyOperations.js ModifiedM src/browser/ui/dom/components/__tests__/ReactDOMIframe-test.js ModifiedM src/browser/ui/dom/setTextContent.js ModifiedM src/classic/types/ReactPropTypes.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/core/ReactLifeCycle.js ModifiedM src/core/ReactUpdateQueue.js ModifiedM src/event/EventPluginUtils.js ModifiedM src/modern/class/ReactComponent.js ModifiedM src/utils/__tests__/quoteAttributeValueForBrowser-test.js ModifiedM src/utils/quoteAttributeValueForBrowser.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…