0.0.29 • Published 9 months ago

@robertakarobin/eslint-config v0.0.29

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

Robin's ESLint

This package is named @robertakarobin/eslint-config instead of just @robertakarobin/eslint because ESLint says so.

Why not Prettier?

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.29

9 months ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago