0.9.0 • Published 2 years ago

eslint-config-backpacker-react v0.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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"
    }
}