Add and apply ESLint spacing rules

For now we're only adding rules related to spacing and double quotes,
following the same rules we use in Ruby, which are the same rules
CoffeeScript followed when compiling these files.

We're also using the recommended ESLint rules, which will warn us about
many JavaScript common pitfalls, the `strict` rule which enforces using
strict mode, and the `no-console` rule, which will prevent us from
shipping code meant for debugging.

Although it's arguably more common to use the JSON format to define
these rules, I've chosen YAML because it's the format we use in all our
linters.
This commit is contained in:
Javi Martín
2019-07-02 16:42:28 +02:00
parent ec5af1f1bc
commit 5211f47842
64 changed files with 119 additions and 104 deletions

View File

@@ -14,5 +14,4 @@
});
}
};
}).call(this);