Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-zen

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-zen

Provided as an extensible shared config

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ESLint Config Zen

An ESLint config for use with the latest ESNext features, React and Flow

Quick Install

yarn add --dev eslint eslint-config-zen eslint-plugin-react eslint-plugin-flowtype babel-eslint
echo '{"extends": ["zen"]}' > .eslintrc

Usage with NPM

If you haven't checked out Yarn yet I would highly recommended, but this config works perfectly with NPM:

npm install --save-dev eslint eslint-config-zen eslint-plugin-react eslint-plugin-flowtype babel-eslint

Then create a new .eslintrc which extends eslint-config-zen:

{
  "extends": ["zen"]
}

That's all!

Multiple Configs

This config exposes multiple configs for use in your projects:

  • zen/base: Base JavaScript configuration, largely based on eslint:recommended.
  • zen/react: For use with React / JSX
  • zen/flowtype: For use with Flow

By default all configurations will be enabled. You can customize which pieces you'd like.

NOTE: The zen/base configuration is needed for the rest to work.

  • For projects without React or Flow: { "extends": ["zen/base"] }
  • For React Projects without Flow: { "extends": ["zen/base", "zen/react"] }

Keywords

FAQs

Package last updated on 08 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc