Commit graph

4 commits

Author SHA1 Message Date
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