ESLint rules for Primer React
-
Assuming you already have ESLint and Primer React installed, run:
npm install --save-dev eslint-plugin-primer-react # or yarn add --dev eslint-plugin-primer-react
-
In your ESLint configuration file, extend the recommended Primer React ESLint config:
{ "extends": [ // ... "plugin:primer-react/recommended" ] }