eslint-config-iroot
eslint-config-iroot
Installation
Install eslint-config-iroot via yarn or npm.
$ yarn add eslint-config-iroot -D
<!-- universal dependency -->
$ yarn add eslint prettier -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
Rules
- @clings/eslint-plugin-node
- eslint-config-airbnb-base
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-prettier
Rules Details
🔗 base
🔗 vue
🔗 react
module.exports = {
root: true,
extends: ['iroot/base'],
extends: ['iroot/typescript'],
extends: ['iroot/vue'],
extends: ['iroot/react']
// choose one
// typescript extends base
}
// typescript extends base For example, the ts-react project 'extends': ['iroot/react'],
// when initializing, ts/js are set automatically so there is no need to inherit typescript
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.5.2 | ^3.4.33 | MIT | |
| 1.5.1 | ^3.4.21 | MIT | |
| 1.5.0 | ^3.3.4 | MIT | |
| 1.4.9 | ^3.3.4 | MIT | |
| 1.4.8 | ^3.3.4 | MIT | |
| 1.4.7 | ^3.3.4 | MIT | |
| 1.4.6 | ^3.2.47 | MIT | |
| 1.4.5 | ^3.2.39 | MIT | |
| 1.4.4 | ^3.2.36 | MIT | |
| 1.4.3 | ^3.2.36 | MIT | |
| 1.4.2 | ^3.2.36 | MIT | |
| 1.4.1 | ^3.2.31 | MIT | |
| 1.4.0 | ^3.0.7 | MIT | |
| 1.3.8 | ^3.0.7 | MIT | |
| 1.3.7 | ^3.0.7 | MIT | |
| 1.3.6 | ^3.0.7 | MIT |