@apimediaru/eslint-config-base
v1.0.23
Published
API Media's base JS Eslint config
Readme
eslint-config-base
This package provides base JS .eslintrc (without plugins) as an extensible shared config.
Usage
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint and eslint-plugin-import.
- Install the correct versions of each package, which are listed by the command:
npm info "@apimediaru/eslint-config-base@latest" peerDependenciesIf using npm 5+, use this shortcut
npx install-peerdeps --dev @apimediaru/eslint-config-baseIf 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.
Otherwise, run npm info "@apimediaru/eslint-config-base@latest" peerDependencies to list the peer dependencies and versions, then run yarn add --dev <dependency>@<version> for each listed peer dependency.
- Add
"extends": "@apimediaru/eslint-config-base"to your .eslintrc.
