@alliance-software/eslint-config-react

Alliance Software eslint configuration for React apps

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@alliance-software/eslint-config-react
Minified + gzip package size for @alliance-software/eslint-config-react in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.