@alliance-software/eslint-config-react
Alliance Software eslint configuration for React apps
Last updated a year ago by davealliance .
BSD-3-Clause · Repository · Original npm · Tarball · package.json
$ cnpm install @alliance-software/eslint-config-react 
SYNC missed versions from official npm registry.

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

Current Tags

  • 5.1.0                                ...           latest (a year ago)

3 Versions

  • 5.1.0                                ...           a year ago
  • 5.0.1                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |