Skip to content

m-nathani/eslint-config-cra

Repository files navigation

ESLint (and Prettier) config of Create react app

These are settings for ESLint and Prettier only used witht CRA.

What it does

This setup lints your JavaScript code based on practices. Check the .eslintrc.js file to see what is included. Feel free to override the rules that make sense for you.

Installing

  1. In your project folder, run:
npm i -D eslint-config-cra
  1. You will see several dependencies were installed. Now, create (or update) a .eslintrc file with the following content:
{
  'extends': [
    'eslint-config-cra'
  ]
}
  1. Make sure the .prettierrc to be same as the prettier-config-cra repository

This repository is inspired by eslint-config-wesbos.

License

eslint-config-cra is open source software licensed as MIT.

About

ESLint config based in recommended best practices

Resources

License

Stars

Watchers

Forks

Packages

No packages published