eslint-config-breathelife-node

2.1.0 • Public • Published

eslint-config-breathelife-node

This package provides Breathe Life Node .eslintrc as an extensible shared config.

Usage

Add to your project and extend config in your ESLint configuration file:

  1. yarn add --dev eslint-config-breathelife-node
  2. Add 'extends': 'breathelife-node' to your .eslintrc or eslintrc.js file.

Dependencies

Contrary to the original Airbnb's ESLint modules, we do not use peer dependencies but we instead use normal dependencies.

Indeed, in our specific case, having normal dependencies reduce the maintenance burden of specifying all the needed peer dependencies when adding a specific ESLint configuration to a project.

That means that we simply need to depend on the right config project (mobile, node or web) to enable and configure ESLint.

Of course, potential conflict problems could arise eventually, but we are ready to live with it.

Pulled Dependencies

The default export contains all of our ESLint rules, including ECMAScript 6+. It pulls:

  • eslint
  • eslint-config-airbnb-base
  • eslint-config-breathelife-base
  • eslint-plugin-filenames
  • eslint-plugin-import

To re-generate the list above, one can use:

npm info "eslint-config-breathelife-node@latest" dependencies --json | \
grep eslint | \
command sed 's/[\{\},]//g ; s/: .*//g ; s/^ *"/ * `/g ; s/"/`/g'

/eslint-config-breathelife-node/

    Package Sidebar

    Install

    npm i eslint-config-breathelife-node

    Weekly Downloads

    5

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    4.04 kB

    Total Files

    7

    Last publish

    Collaborators

    • breathelife