Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.49 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.49 KB

eslint-plugin-primer-react

npm package

ESLint rules for Primer React

Installation

  1. 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
  2. In your ESLint configuration file, extend the recommended Primer React ESLint config:

    {
      "extends": [
        // ...
        "plugin:primer-react/recommended"
      ]
    }

Rules