Zeplin's homegrown .eslintrc
as an extensible shared config. 🌳
Package is available on npm:
npm install @zeplin/eslint-config
eslint-config
(or eslint-config/base
) is the base configuration.
- Add
extends: "@zeplin/eslint-config"
to your.eslintrc
.
eslint-config/browser
adds preact support for browser use, requiring eslint-plugin-react
as well.
- Install
eslint-plugin-react
using npm:
npm install eslint-plugin-react
- Add
extends: "@zeplin/eslint-config/browser"
to your.eslintrc
.
eslint-config/node
overrides the base config, providing better support for Node.js environment.
- Add
extends: "@zeplin/eslint-config/node"
to your.eslintrc
.