Back to Blueprint

Blueprint ESLint Configuration

packages/eslint-config/README.md

latest999 B
Original Source

Blueprint ESLint Configuration

Blueprint is a React UI toolkit for the web.

This package contains the ESLint configuration for Blueprint. It enables lint rules which enforce code style conventions and enables the @blueprintjs/eslint-plugin plugin.

Installation

sh
pnpm add --save-dev @blueprintjs/eslint-config

Usage

Enable this configuration in your ESLint configuration file (e.g. .eslintrc.json):

json
{
    "extends": ["@blueprintjs/eslint-config"]
}

VSCode

If you use VSCode, install the dbaeumer.vscode-eslint plugin to lint your code in the editor. We recommend enabling these global VSCode settings:

json
"editor.formatOnSave": true,
"eslint.format.enable": true