Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-backpacker-react

backpacker421MIT0.9.0

Backpacker's eslint config for React

eslint, eslint-config, react, react-native

readme

eslint-config-backpacker-react

npm version Build

Extends eslint-config-airbnb and a few others.

To install, run

yarn add --dev eslint-config-backpacker-react

Then extend it inside your .eslintrc.js file

module.exports = {
  ...
  extends: [
    "backpacker-react",
  ],
};

Import sort plugin

To automatically sort imports with prettier, use prettier-plugin-import-sort with import-sort-style-module. Then add the following configuration in package.json:

"importSort": {
    ".js, .jsx, .ts, .tsx": {
      "style": "module"
    }
}