eslint-config-os-team-node

1.1.45 • Public • Published

eslint-config-os-team-node NPM version

ESLint rules for Node.js, including TypeScript.

Uses the eslint-config-airbnb-typescript package to implement Airbnb JavaScript Style Guide.

Contains additional recommended rules for:

  • Jest.
  • Promise.
  • Typescript.
  • Node.
  • Prettier.

Installation

Step 1. Install the package

Install the exact version (-E) of the package in devDependencies (-D) using the following command:

yarn add -DE eslint-config-os-team-node

Step 2. Install ESLint plugins

ESLint plugins used by this config must be installed withing your project using the following command:

npx install-peerdeps -D eslint-config-os-team-node

Step 3. Extend your .eslintrc

Add "extends": "os-team-node" to your .eslintrc file and set parserOptions.project to the path of your tsconfig.json.

{
  "extends": "os-team-node",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-os-team-node

Weekly Downloads

4

Version

1.1.45

License

MIT

Unpacked Size

4.38 kB

Total Files

4

Last publish

Collaborators

  • oxilor