Skip to content

Instantly share code, notes, and snippets.

@zpao
Created December 19, 2014 04:49
Show Gist options
  • Save zpao/a0fe0a93a86ea2cfcef2 to your computer and use it in GitHub Desktop.
Save zpao/a0fe0a93a86ea2cfcef2 to your computer and use it in GitHub Desktop.
eslinting
> [email protected] lint /Users/poshannessy/FB/code/react
> eslint src
src/addons/ReactRAFBatchingStrategy.js
18:4 error 'requestAnimationFrame' is read only no-undef
src/addons/transitions/ReactCSSTransitionGroupChild.js
67:6 warning Expected an assignment or function call and instead saw an expression no-unused-expressions
src/browser/eventPlugins/BeforeInputEventPlugin.js
493:7 warning Trailing comma no-comma-dangle
src/browser/eventPlugins/FallbackCompositionState.js
72:31 warning "start" used outside of binding context block-scoped-var
79:20 warning "end" used outside of binding context block-scoped-var
79:34 warning "end" used outside of binding context block-scoped-var
80:40 warning "start" used outside of binding context block-scoped-var
src/browser/eventPlugins/SelectEventPlugin.js
97:20 error Expected '!==' and instead saw '!=' eqeqeq
src/browser/syntheticEvents/SyntheticClipboardEvent.js
44:1 warning Unexpected blank line at end of file eol-last
src/browser/syntheticEvents/SyntheticCompositionEvent.js
44:1 warning Unexpected blank line at end of file eol-last
src/browser/syntheticEvents/SyntheticEvent.js
91:4 warning Expected an assignment or function call and instead saw an expression no-unused-expressions
97:4 warning Expected an assignment or function call and instead saw an expression no-unused-expressions
src/browser/syntheticEvents/SyntheticInputEvent.js
45:1 warning Unexpected blank line at end of file eol-last
src/browser/ui/ReactDOMComponent.js
62:8 error Infix operators must be spaced space-infix-ops
129:4 error 'hasOwnProperty' is read only no-undef
src/browser/ui/ReactMount.js
438:4 warning Expected an assignment or function call and instead saw an expression no-unused-expressions
src/browser/ui/dom/DOMChildrenOperations.js
103:4 error Expected a conditional expression and instead saw an assignment no-cond-assign
112:10 error Infix operators must be spaced space-infix-ops
140:4 error Expected a conditional expression and instead saw an assignment no-cond-assign
src/browser/ui/dom/Danger.js
106:11 warning "i" used outside of binding context block-scoped-var
106:18 warning "i" used outside of binding context block-scoped-var
106:44 warning "i" used outside of binding context block-scoped-var
107:37 warning "i" used outside of binding context block-scoped-var
111:10 warning "resultIndex" used outside of binding context block-scoped-var
115:39 warning "resultIndex" used outside of binding context block-scoped-var
119:21 warning "resultIndex" used outside of binding context block-scoped-var
src/browser/ui/dom/getNodeForCharacterOffset.js
56:22 error Expected '===' and instead saw '==' eqeqeq
src/classic/class/ReactClass.js
385:33 error Expected '===' and instead saw '==' eqeqeq
645:44 warning "args" used outside of binding context block-scoped-var
655:18 warning "args" used outside of binding context block-scoped-var
655:18 error 'args' is not defined no-undef
667:44 warning "args" used outside of binding context block-scoped-var
667:44 error 'args' is not defined no-undef
src/classic/types/ReactPropTypes.js
283:2 warning Keyword "switch" must be followed by whitespace space-after-keywords
src/core/ReactComponentEnvironment.js
53:3 warning Trailing comma no-comma-dangle
src/core/ReactInstanceHandles.js
123:33 warning "i" used outside of binding context block-scoped-var
src/core/ReactMultiChild.js
229:10 warning Expected an assignment or function call and instead saw an expression no-unused-expressions
250:10 warning Expected an assignment or function call and instead saw an expression no-unused-expressions
src/core/ReactPropTransferer.js
104:3 warning Trailing comma no-comma-dangle
src/event/EventPluginHub.js
61:16 error Infix operators must be spaced space-infix-ops
src/utils/LegacyImmutableObject.js
173:7 warning "ii" used outside of binding context block-scoped-var
173:15 warning "ii" used outside of binding context block-scoped-var
173:36 warning "ii" used outside of binding context block-scoped-var
174:25 warning "ii" used outside of binding context block-scoped-var
src/utils/OrderedMap.js
32:11 error Infix operators must be spaced space-infix-ops
src/utils/Transaction.js
207:10 warning Expected an assignment or function call and instead saw an expression no-unused-expressions
src/utils/memoizeStringOnly.js
27:6 error Return statement should not contain assignment no-return-assign
✖ 47 problems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment