The eslint configuration used for orbit-db projects
Our default export contains all of our ESLint rules.
Requirements
eslint-plugin-import
eslint-plugin-standard
eslint-plugin-promise
eslint-plugin-node
eslint-config-standard
eslint
If you use yarn, run npm info "eslint-config-orbitdb@latest" peerDependencies
to list the peer dependencies and versions, then run yarn add --dev <dependency>@<version>
for each listed peer dependency. See below for npm instructions.
- Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-orbitdb@latest" peerDependencies
Linux/OSX users can run
(
export PKG=eslint-config-orbitdb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add --dev "$PKG@latest"
)
- Add
"extends": "eslint-config-orbitdb"
to your .eslintrc