eslint-config-zmi

zmi eslint config
4,698 5
Install
npm install eslint-config-zmi
Latest Version:1.3.5
Vue:3
License:MIT
Last Updated:Apr 11, 2024
Links: GitHub  ·  npm
Maintainer: zaire

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

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.3.5 ^3.0.7 MIT
1.3.4 ^3.0.7 MIT
1.3.3 ^3.0.7 MIT
1.3.2 ^3.0.7 MIT
1.3.1 ^3.0.7 MIT