Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 759 Bytes

README.md

File metadata and controls

15 lines (15 loc) · 759 Bytes
$ yarn add eslint -D
$ yarn eslint --init
  ? How would you like to use ESLint? ***To check syntax, find problems, and enforce code style***
  ? What type of modules does your project use? ***JavaScript modules (import/export)***
  ? Which framework does your project use? ***React***
  ? Does your project use TypeScript? ***No***
  ? Where does your code run? ***Browser***
  ? How would you like to define a style for your project? ***Use a popular style guide***
  ? Which style guide do you want to follow? ***Airbnb: https://github.com/airbnb/javascript***
  ? What format do you want your config file to be in? ***JavaScript***
$ rm package-lock.json
$ yarn
$ yarn add prettier eslint-config-prettier eslint-plugin-prettier babel-eslint -D