@robertakarobin/eslint-config

0.0.26 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @robertakarobin/eslint-config

Weekly Downloads

128

Version

0.0.26

License

none

Unpacked Size

3.42 kB

Total Files

3

Last publish

Collaborators

  • robertakarobin