12.3.2 • Published 3 years ago

eslint-config-mkvlrn v12.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

eslint-config-mkvlrn

autodeploy

what

Mainly extends AirBnb's excellent guide, disabling a few rules in order to accommodate the projects I usually create.

It also bundles ALL dependencies (that should be peerDependencies) but since an ESLint flat config is still so far away, it all installs like devDependencies.

install

# eslint and typescript are peerDependencies
# typescript only needed for TS projects
# npm can be replaced by yarn or pnpm (my personal preference)
npm add eslint typescript eslint-config-mkvlrn -D

extending

Four possible configurations can be extended in your eslint configuration, like this:

// .eslintrc.js
// this extends the typescript config for react projects
module.exports {
  extends: "mkvlrn/ts-react"
  ...
}

Configs are:

  • react typescript: mkvlrn/ts-react
  • node typescript (no react): mkvlrn/ts
  • react javascript: mkvlrn/js-react
  • node javascript (no react): mkvlrn/js

disabled rules

no-underscore-dangle

this rule just makes it awkward to deal with mongodb models (which have a _id field by default)

import/prefer-default-export

this rule spoils tree-shaking (in some projects) and marks the exporting of cloud functions that require a named export as incorrect

react/jsx-uses-react & react/react-in-jsx-scope

react's new jsx transform doesn't expect React to be in scope when using jsx, and these rules expect it to be imported

what's up with the version number?

Eh I messed up.

12.3.0

3 years ago

12.3.1

3 years ago

12.3.2

3 years ago

12.0.0

3 years ago

12.1.0

3 years ago

12.2.0

3 years ago

7.0.2

3 years ago

7.0.1

3 years ago

7.0.0

3 years ago

6.5.0

3 years ago

6.4.4

3 years ago

6.4.3

3 years ago

6.4.2

3 years ago

6.4.1

3 years ago

6.4.0

3 years ago

6.3.0

3 years ago

6.2.2

3 years ago

6.2.1

3 years ago

6.2.0

3 years ago

6.1.2

3 years ago

6.1.0

3 years ago

6.1.1

3 years ago

6.0.5

3 years ago

6.0.4

3 years ago

6.0.3

3 years ago

6.0.2

3 years ago

6.0.1

3 years ago

6.0.0

4 years ago

5.0.6

4 years ago

5.0.5

4 years ago

5.0.4

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.1.2

4 years ago

4.1.0

4 years ago

4.1.1

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.8.2

4 years ago

1.8.3

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.4

4 years ago

1.7.3

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.5.3

4 years ago

1.6.0

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago