0.0.23 • Published 2 months ago

@robertakarobin/eslint-config v0.0.23

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

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
0.0.23

2 months ago

0.0.22

2 months ago

0.0.20

3 months ago

0.0.21

3 months ago

0.0.19

3 months ago

0.0.18

4 months ago

0.0.15

4 months ago

0.0.16

4 months ago

0.0.17

4 months ago

0.0.13

5 months ago

0.0.14

5 months ago

0.0.12

5 months ago

0.0.11

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

7 months ago

0.0.1

7 months ago