Skip to content

chungweileong94/eslint-config-whiteroom

Repository files navigation

eslint-config-whiteroom

White Room ESLint Configuration

npm version

Installation

# npm
npm install -D eslint-config-whiteroom

# yarn
yarn add -D eslint-config-whiteroom

# pnpm
pnpm add -D eslint-config-whiteroom

Install peer dependencies

npx install-peerdeps --dev eslint-config-whiteroom

Configure ESLint

In your ESLint configuration file:

  1. You need tell the parser where's your tsconfig.json

    + parserOptions: {
    +   project: './tsconfig.json'
    + }
  2. Extends eslint-config-whiteroom

      extends: [
        ...
    +   'whiteroom',
      ]