@alliance-software/eslint-config-react

5.1.0 • Public • Published

eslint-config-react

eslint config for React projects. Extends eslint-config.

Usage

# yarn projects
yarn add @alliance-software/eslint-config-react eslint

Create a .eslintrc that extends react-alliance:

{
  "extends" : [
    "@alliance-software/eslint-config-react"
  ]
}

In the scripts key in package.json add:

{
        "lint": "eslint ./src",
        "lint:fix": "npm run lint -- --fix",
}

where ./src is the directory you want to run linting on

Changelog

  • 5.x
    • 5.1.0
      • Remove deprecated jsx-a11y/label-has-for
    • 5.0.1
      • Upgrade to eslint 5, eslint-config-alliance 4
  • 4.x
    • 4.0.0
      • Turn on prop type checking
      • Remove restriction on calling setState in componentDidMount
  • 3.x
    • 3.1.1
      • Remove deprecated react/jsx-space-before-closing rule
    • 3.1.0
      • Update to work with react 17. Requires update to eslint-plugin-react >=7.5
    • 3.0.2
      • Update a11y rules
    • 3.0.1
      • Broaden dependency ranges
    • 3.0.0
      • Breaking Changes
        • Upgrade to eslint 4, eslint-plugin-react 7 and eslint-plugin-jsx-a11y 4
      • Remove ignored deprecated settings

Readme

Keywords

none

Package Sidebar

Install

npm i @alliance-software/eslint-config-react

Weekly Downloads

5

Version

5.1.0

License

BSD-3-Clause

Unpacked Size

25.3 kB

Total Files

5

Last publish

Collaborators

  • davealliance
  • levic