@zeplin/eslint-config
v2.3.2
Published
Zeplin's homegrown `.eslintrc` as an extensible shared config.
Downloads
181
Readme
eslint-config
Zeplin's homegrown .eslintrc
as an extensible shared config. 🌳
Usage
Package is available on npm:
npm install @zeplin/eslint-config
Configurations
Base
eslint-config
(or eslint-config/base
) is the base configuration.
- Add
extends: "@zeplin/eslint-config"
to your.eslintrc
.
Browser
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
.
Node.js
eslint-config/node
overrides the base config, providing better support for Node.js environment.
- Add
extends: "@zeplin/eslint-config/node"
to your.eslintrc
.