@robertakarobin/eslint-config v0.0.23
JS Linting
We're not using Prettier because it's too much of a PITA, especially when supporting custom templates like .astro
.
Styleguide
The philosophy is that a "rule" is only a rule if it can be caught by an automated linter.
Rules that we haven't found lint rules for yet:
When you have to use quotes when declaring an object property name, use single quotes.
Use
data-
attributes to select elements, not CSS classes.Use the global namespace when calling global variables. This makes it clearer where the variable is coming from.
Yes:
window.location
No:
location
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago