Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 782 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 782 Bytes

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.