Commit Graph

9 Commits

Author SHA1 Message Date
Toru Kobayashi ed0e242e07 ESLint ignores built files 2015-03-13 09:58:20 +09:00
chico 90ce7f67d7 lint vendor/*.js 2015-02-20 04:37:45 +03:00
chico ed6d02e1a8 fix .eslintignore 2015-02-20 04:31:21 +03:00
chico 466f4faf4e lint from root 2015-02-20 04:06:15 +03:00
Paul O’Shannessy e830cea050 Lint vendor/fbtransform as well 2015-02-19 15:26:27 -08:00
Paul O’Shannessy 432e378687 Remove references to vendor_deprecated 2015-02-13 18:27:22 -08:00
chico 1511fff598 eslint 2015-02-13 02:43:42 +03:00
Paul O’Shannessy dae1dc6292 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.
2015-02-09 14:27:28 -08:00
Paul O’Shannessy 3f8d4eaa63 Use eslint
These rules are very close to what we have internally. We may still miss
a couple things (jsdoc params being a big one) but it's good enough.
This is also more restrictive than what we enforce internally, but it's
for the best.
2015-01-13 14:01:34 -08:00