@lcdev/eslint-config

0.5.1 • Public • Published

ESLint

npm Licensed under MPL 2.0

This is our shared eslint configuration that's applicable to any project type.

This configuration aims to be extremely boring and non-obtrusive. It shouldn't contain rules that are highly contested or that are purely aesthetic (if they cannot be autofixed). We try to lean on typescript for better lints and keep up with the latest in the community.

At its core, this uses the AirBnB configuration, but is pretty modified for typescript (and a lot of lints are turned off because they don't provide us value).

This builds on top of our prettier config for formatting.

yarn add @lcdev/eslint-config@VERSION

Single Package

Add to your package.json, usually after dependencies:

  "eslintConfig": {
    "extends": "@lcdev"
  }

Not using typescript?

  "eslintConfig": {
    "extends": "@lcdev/eslint-config/js"
  }

Monorepo

Add a file called .eslintrc.js to every subpackage.

module.exports = require('@lcdev/eslint-config/cwd')(__dirname);

For non-typescript:

module.exports = {
  extends: '@lcdev/eslint-config/js',
};

Readme

Keywords

none

Package Sidebar

Install

npm i @lcdev/eslint-config

Weekly Downloads

56

Version

0.5.1

License

MPL-2.0

Unpacked Size

6.88 kB

Total Files

6

Last publish

Collaborators

  • jbrandtlc
  • joelgallant-me
  • servalldev
  • gregnr