0.1.0 • Published 7 years ago
jeason-eslint-config v0.1.0
jeason-eslint-config
This package includes the shareable ESLint configuration used by Jeason.
Usage
If you want to use this ESLint configuration in a project, you can install it with following steps.
First, install this package, ESLint and the necessary plugins.
# first switch to npm or taobao npm resource
nrm use npm/cnpm
npm install --save-dev jeason-eslint-config babel-eslint eslint eslint-plugin-flowtype eslint-plugin-import
# if you use react or jsx
npm install --save-dev eslint-plugin-jsx-a11y eslint-plugin-react
Then create a file named .eslintrc
with following contents in the root folder of your project:
{
"extends": "jeason-eslint-config"
}
That's it! You can override the settings from jeason-eslint-config
by editing the .eslintrc
file. Learn more about configuring ESLint on the ESLint website.
0.1.0
7 years ago