1.1.0 • Published 5 years ago
eslint-config-zhihu v1.1.0
eslint-config-zhihu
ESLint shareable config for the Zhihu.
Rules
eslint:recommended
plugin:react/recommended
plugin:import/recommended
Install
npm install --save-dev eslint eslint-config-zhihu eslint-plugin-import
# with react
npm install --save-dev eslint-plugin-react
Usage
Add some ESLint config to your package.json
:
{
"scripts": {
"eslint": "eslint ."
},
"eslintConfig": {
"extends": "zhihu"
// with react
// "extends": ["zhihu", "zhihu/react"]
}
}