eslint-config-zhizu v1.0.17
eslint-config-zhizu
This package provides ZHIZU's base JS .eslintrc as an extensible shared config.
Usage
npm source https://verdaccio.zhizukj.com/-/web/detail/eslint-config-zhizu
eslint-config-zhizu
Our default export contains all of our ESLint rules, including ECMAScript 6.
First, install this package
npm install --save-dev eslint-config-zhizu eslint eslint-plugin-import eslint-plugin-n eslint-plugin-promise
Then add following contents to your .eslintrc file
{
"extends": "zhizu"
}
eslint-config-zhizu/es5
For some legacy project using es5.
First, install this package
npm install --save-dev eslint-config-zhizu eslint
Then add following contents to your .eslintrc file
{
"extends": "zhizu/es5"
}
eslint-config-zhizu/react
First, install this package and necessary plugins
npm install --save-dev eslint-config-zhizu eslint babel-eslint eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-n eslint-plugin-promise
Then add following contents to your .eslintrc file
{
"extends": "zhizu/react"
}
eslint-config-zhizu/vue
First, install this package and necessary plugins The package Applied to vue2
npm install --save-dev eslint-config-zhizu eslint babel-eslint eslint-plugin-vue eslint-plugin-import eslint-plugin-n eslint-plugin-promise
Then add following contents to your .eslintrc file
{
"extends": "zhizu/vue"
}
eslint-config-zhizu/vue3
First, install this package and necessary plugins The package Applied to vue3
npm install --save-dev eslint-config-zhizu eslint babel-eslint eslint-plugin-vue eslint-plugin-import eslint-plugin-n eslint-plugin-promise
Then add following contents to your .eslintrc file
{
"extends": "zhizu/vue3"
}
eslint-config-zhizu/ts
First, install this package and necessary plugins
npm install --save-dev eslint-config-zhizu @typescript-eslint/eslint-plugin @typescript-eslint/parser
Then add following contents to your .eslintrc file
{
"extends": "zhizu/ts"
}
eslint-config-zhizu/vue3-ts
First, install this package and necessary plugins The package Applied to typescript vue3
npm install --save-dev eslint-config-zhizu @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-n eslint-plugin-promise eslint-plugin-vue
Then add following contents to your .eslintrc file
{
"extends": "zhizu/vue3-ts"
}
eslint-config-zhizu/mini-program
First, install this package and necessary plugins
npm install --save-dev eslint-config-zhizu eslint eslint-plugin-wxml
Then add following contents to your .eslintrc file
{
"extends": "zhizu/mini-program"
}
License
MIT