Skip to content

Instantly share code, notes, and snippets.

@savio777
Created October 16, 2023 16:49
Show Gist options
  • Save savio777/9ce2108fa0f0647b769cbe305fddbda0 to your computer and use it in GitHub Desktop.
Save savio777/9ce2108fa0f0647b769cbe305fddbda0 to your computer and use it in GitHub Desktop.
Config Eslint

reference

  • install
yarn add eslint --dev
  • run eslint config
yarn run eslint --init

options config eslint:

  • How would you like to use ESLint? · style
  • What type of modules does your project use? · commonjs
  • Which framework does your project use? · react
  • Does your project use TypeScript? · No / Yes
  • Where does your code run? · browser
  • How would you like to define a style for your project? · guide
  • Which style guide do you want to follow? · standard-with-typescript
  • What format do you want your config file to be in? · JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment