This package provides a shared ESLint configuration for use on React projects.
-
Install this package as a development dependency:
# with npm npm install --save-dev @calblueprint/eslint-config-react # with yarn yarn add --dev @calblueprint/eslint-config-react
-
Install peer dependencies:
# with npm or yarn npx install-peerdeps --dev @calblueprint/eslint-config-react
-
Use the shared ESLint config in your project's
.eslintrc.js
:module.exports = { extends: ['@calblueprint/eslint-config-react'], };
-
Test that the config is working by running
npx eslint .
in your project's root directory.