@spendology/eslint-config
v6.0.3
Published
ESLint config for Spendology projects
Downloads
6
Readme
@spendology/eslint-config
This package provides Spendology's .eslintrc as an extensible shared config.
Usage
We export one ESLint configuration for your usage.
Our default export contains all of our ESLint rules, including ECMAScript 6+, React and React Redux. It requires eslint
, eslint-config-airbnb
, eslint-plugin-react
, eslint-plugin-react-hooks
and eslint-plugin-react-redux
.
Install Option 1
If using npm 5+, use this shortcut
npx install-peerdeps --dev @spendology/eslint-config
If using yarn, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly.
Install Option 2
Install the correct versions of each package, which are listed by the command:
npm info "@spendology/eslint-config@latest" peerDependencies
If using yarn, run the command to list the peer dependencies and versions, then run yarn add --dev <dependency>@<version>
for each listed peer dependency.