1.0.0 • Published 4 years ago

eslint-config-cherryfe v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

eslint-config-cherryfe

This package provides CherryFE's base JS .eslintrc as an extensible shared config.

Usage

eslint-config-cherryfe

Our default export contains all of our ESLint rules, including ECMAScript 6.

First, install this package

npm install --save-dev eslint-config-cherryfe eslint

Then add following contents to your .eslintrc file

{
  "extends": "cherryfe"
}

eslint-config-cherryfe/legacy

For some legacy project using es5.

First, install this package

npm install --save-dev eslint-config-cherryfe eslint

Then add following contents to your .eslintrc file

{
  "extends": "cherryfe/legacy"
}

eslint-config-cherryfe/react

First, install this package and necessary plugins

npm install --save-dev eslint-config-cherryfe eslint babel-eslint eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y

Then add following contents to your .eslintrc file

{
  "extends": "cherryfe/react"
}

License

MIT