Skip to content

web-at-berkeley/eslint-config-web-at-berkeley

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-web-at-berkeley

ESLint configuration for Web @ Berkeley

Submodule within mono

How to Use

Start by installing eslint and this package:

yarn add -D eslint @web-at-berkeley/eslint-config

Now, create a eslint config file:

touch .eslintrc.js

Put the following code in this config file:

{
    "extends": "@web-at-berkeley/eslint-config"
}

In your project's root directory, run the following

yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-import eslint-plugin-prettier eslint-plugin-react prettier typescript

You should now be setup properly to use the WDB shared ESLint config! Make sure you install your IDE specific ESLint plugin, like this one for VSCode

If using yarn PnP, make sure you run yarn sdks <your editor>!