Skip to content

kr-npm/eslint-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@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"
}