1.0.1 • Published 6 years ago

eslint-config-bee v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

🐝🐝🐝

ESLint rules config.

Usage

eslint-config-bee

JS

  • npm install eslint eslint-config-bee --save-dev
  • add config in .eslintrc
{
  "extends": ["bee"]
}

React

  • npm install eslint-plugin-react --save-dev
  • add config in .eslintrc
{
  "extends": ["bee", "bee/react"]
}

Only JSX

  • add config in .eslintrc
{
  "extends": ["bee", "bee/jsx"]
}

Lint ES6/7 features

If you need to lint experimental features in ES6/7 (class properties, decorators, types),install babel-eslint npm install babel-eslint --save-dev,and add config in .eslintrc

{
  "parser": "babel-eslint"
}