This package includes the shareable ESLint configuration.
The easiest way to use this configuration is with Create React pT App, which includes it by default.
You don’t need to install it separately in Create React App projects.
If you want to use this ESLint configuration in a project not built with Create React App, you can install it with the following steps.
First, install this package, ESLint and the necessary plugins.
yarn add --dev @passiontrade/eslint-config-pt-react-app [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
Then create a file named .eslintrc.js
with following contents in the root folder of your project:
module.export = {
extends: '@passiontrade/eslint-config-pt-react-app',
}
That's it! You can override the settings from eslint-pt-config-react-app
by editing the .eslintrc.js
file.