Skip to content

Latest commit

 

History

History
96 lines (53 loc) · 4.4 KB

migration-from-5-to-6.md

File metadata and controls

96 lines (53 loc) · 4.4 KB

Migration Guide from v5.x to v6.x

The main motivation for this is adding rule-of-hooks for react. (https://www.npmjs.com/package/eslint-plugin-react-hooks)

React

eslint-config-skyscanner will try to detect automatically the version of React installed.

If your project doesn't use it or it is not installed in the same package.json as eslint-config-skyscanner, it must be manually set in .eslintrc:

"settings": {
  "react": {
    "version": "16.4"
  }
}

Breaking rules that have been disabled

Breaking rules we are keeping without changes

Breaking rules we are keeping with changes

The change from v5 to v6 includes two main items:

  • Upgraded eslint-config-airbnb to v18 which comes with major breaking rule changes.
  • Dropped eslint v4 support