2.0.8 • Published 6 months ago

@justia/eslint-config-node v2.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@justia/eslint-config-node version 2.0.8

Justia's JS ESLint configuration for Node projects

This package uses @justia/eslint-config as a base configuration and adds specific rules for Node environments.

Install

Install the correct versions of the peer dependencies, which are listed by the command:

npm info "@justia/eslint-config-node@latest" peerDependencies

If using npm 5+, use this shortcut

npx install-peerdeps --dev @justia/eslint-config-node

If using npm < 5, Linux/OSX users can run

(
export PKG=@justia/eslint-config-node;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

Which produces and runs a command like:

npm install --save-dev @justia/eslint-config-node eslint@^#.#.# prettier@^#.#.# babel-eslint@^#.#.# eslint-config-prettier@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-node@^#.#.# eslint-plugin-prettier@^#.#.# eslint-plugin-promise@^#.#.#

Usage

This configuration contains all of our ESLint rules, including ECMAScript 6+, Node and formatting styles. It requires the following external packages:

  • eslint
  • prettier
  • babel-eslint
  • eslint-config-prettier
  • eslint-plugin-import
  • eslint-plugin-node
  • eslint-plugin-prettier
  • eslint-plugin-promise

After installation of packages and its peer dependencies, add "extends": ["@justia/eslint-config-node"] to your .eslintrc.

2.0.7

9 months ago

2.0.8

6 months ago

2.0.5

1 year ago

2.0.6

1 year ago

2.0.3

1 year ago

2.0.2

2 years ago

2.0.4

1 year ago

2.0.1

2 years ago

1.0.0

2 years ago

2.0.0

2 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago