@outfit.io/eslint-config

0.0.4 • Public • Published

Outfit.io ESLint config

Shareable ESLint config for Outfit.io JS projects.

Install

Run the following in your project directory:

npm install --save-dev @outfit.io/eslint-config

Usage

Step 1. Add ESLint rules for the language being used.

Javascript:

Add the following to your ESLint config file:

{
  "extends": ["eslint:recommended", "@outfit.io/eslint-config"]
}

TypeScript:

Install the TypeScript ESLint plugin and follow configuration instructions.

Add the following to your ESLint config file:

{
  "extends": ["plugin:@typescript-eslint/recommended", "@outfit.io/eslint-config", "@outfit.io/eslint-config/typescript"]
}

Step 2. Add ESLint rules for the frameworks/libraries being used.

React:

Install the React ESLint plugin and follow configuration instructions.

Add the following to your ESLint config file:

{
  "extends": ["plugin:react/recommended", "@outfit.io/eslint-config/react"]
}

Jest:

Install the Jest ESLint plugin and follow configuration instructions.

Add the following to your ESLint config file:

{
  "extends": ["plugin:jest/recommended", "@outfit.io/eslint-config/jest"]
}

Testing Library:

Install the Testing Library ESLint plugin and follow configuration instructions.

Add the following to your ESLint config file:

{
  "extends": ["plugin:testing-library/recommended", "@outfit.io/eslint-config/testing-library"]
}

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @outfit.io/eslint-config

    Weekly Downloads

    1

    Version

    0.0.4

    License

    UNLICENSED

    Unpacked Size

    16.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • samueljim
    • jamesrplee
    • outfit-npm
    • phillycheese
    • omnihound