eslint-config-zmi
v1.3.5
Published
zmi eslint config
Downloads
29
Maintainers
Readme
eslint-config-zmi
Installation
Install eslint-config-zmi
via yarn or npm.
$ yarn add eslint-config-zmi -D
Vue project
$ yarn add eslint-plugin-vue -D
React project
$ yarn add eslint-plugin-react eslint-plugin-react-hooks -D
Typescript need additional installation
$ yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser -D
module.exports = {
root: true,
extends: ['zmi/base'],
extends: ['zmi/typescript'],
extends: ['zmi/vue'],
extends: ['zmi/react']
// choose one
// typescript extends base
}
// typescript extends base For example, the ts-react project 'extends': ['zmi/react'],
// when initializing, ts/js are set automatically so there is no need to inherit typescript