Commit graph

8 commits

Author SHA1 Message Date
Dan Stillman
6411342a0f ESLint config updates 2019-03-28 04:57:31 -04:00
Dan Stillman
c26c85a262 Add babel-eslint for class field syntax in JSX 2019-03-18 18:22:28 -04:00
Dan Stillman
0cf1624b7e ESLint: Remove no-implicit-globals 2019-03-11 05:22:55 -04:00
Dan Stillman
a4613e6d12 Fix .eslintrc whitespace, but properly this time 2019-03-06 19:52:44 -05:00
Dan Stillman
3a777dcf40 ESLint: Use ignoreChainWithDepth: 3 for newline-per-chained-call 2019-03-05 07:34:05 -05:00
Dan Stillman
e44dc23f55 Convert spaces to tabs in .eslintrc 2019-03-05 07:34:05 -05:00
Dan Stillman
8b4bb62efc Don't load linked URLs during import
Regression from 5a6a772ca2, I think
2019-01-26 00:20:26 -05:00
Dan Stillman
18054c4bc4 Add preliminary eslint config
None of our existing files match these rules perfectly, but they're
something to aspire to. I've only checked a handful of files, so there
may be some unwanted or missing rules, and there are definitely some
missing globals.

Some of our more common spacing inconsistencies are currently set as
warnings rather than errors so they can be easily disabled to see more
dangerous stuff.

At some point we can use --fix to correct many problems in existing
files, but we should go through existing pull requests before doing that
to avoid conflicts. Eventually, we'll want to enforce linting as part of
a pre-push hook and CI.
2019-01-21 03:36:16 -05:00