eslint config for zc
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-config-zc
:
$ npm install eslint-config-zc --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-config-zc
globally.
Add zc
to the config section of your .eslintrc
configuration file. You can omit the eslint-config-
prefix:
{
"extends": ["zc"]
}
{
"extends": ["zc", "zc/react"]
}
{
"extends": ["zc", "zc/vue"]
}
{
"extends": ["zc", "zc/typescript"]
}
{
"extends": ["zc", "zc/react", "zc/typescript"]
}