3.0.0 • Published 7 years ago

eslint-config-zen v3.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

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"] }
3.0.0

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago