Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 1.2 KB

README.md

File metadata and controls

58 lines (45 loc) · 1.2 KB

@excalidraw/eslint-config

Excalidraw's ESLint config.

Usage for CRA

Install (macOS, Linux)

yarn add --dev @excalidraw/eslint-config \
               eslint-config-prettier \
               eslint-plugin-prettier \
               prettier

Install (Windows)

yarn add --dev @excalidraw/eslint-config ^
               eslint-config-prettier ^
               eslint-plugin-prettier ^
               prettier

Usage for non-CRA

Install (macOS, Linux)

yarn add --dev @excalidraw/eslint-config \
               @typescript-eslint/parser \
               @typescript-eslint/eslint-plugin \
               eslint-config-prettier \
               eslint-plugin-prettier \
               eslint \
               prettier

Install (Windows)

yarn add --dev @excalidraw/eslint-config ^
               @typescript-eslint/parser ^
               @typescript-eslint/eslint-plugin ^
               eslint-config-prettier ^
               eslint-plugin-prettier ^
               eslint ^
               prettier

Edit .eslintrc.json

{
  // ...
  "extends": "@excalidraw/eslint-config"
}