eslint-config-iroot

iroot eslint config
1,026 5
Install
npm install eslint-config-iroot
Latest Version:1.5.2
Vue:3
License:MIT
Last Updated:Apr 11, 2024
Links: GitHub  ·  npm
Maintainer: zaire

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

🔗 typescript

🔗 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

eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591
@ocavue/eslint-config

Opinionated ESLint config preset

103,814 3
@vue/eslint-plugin

Official ESLint plugin for Vue.js

19,937 4,591
@sharkykh/eslint-plugin-vue-extra

ESLint plugin, extension for eslint-plugin-vue

15,653 0

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