@vbs/vue-cli-plugin-eslint

0.0.7 • Public • Published

@vbs/vue-cli-plugin-eslint

npm version GitHub issues GitHub forks GitHub stars GitHub license

A Vue scaffold plugin based on prettier specification

Support Language

  • √ Vue 2.x + Typescript
  • √ Vue 2.x + Javascript
  • √ Vue 3.x + Typescript
  • √ Vue 3.x + Javascript

Front Work

Install VScode Plugin

Search and install the following 2 plugins in your VScode plugin store

  • ESLint: Check for errors in code writing
  • Prettier: Unified formatting code style

Configure VScode

In "file = > Preferences = > Settings = > Open settings (JSON)", add the following configuration:

{
  "eslint.validate": [
    "vue",
    "javascript",
    "typescript",
    "javascriptreact",
    "typescriptreact"
  ],
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode"
}

Using tutorials

Add @vbs/eslint to the project using Vue scaffolding plugins

vue add @vbs/eslint

Installation options

  • 🚩 Choose a version of Vue.js
  • 🚩 Choose your project language
  • 🚩 Choose install style property declarations and groups related properties
  • 🚩 Choose install git submit verification

Questions

Q: Why does the editor not prompt the code to report an error after I install it?

A: After attempting to install, restart the vscode editor

Package Sidebar

Install

npm i @vbs/vue-cli-plugin-eslint

Weekly Downloads

20

Version

0.0.7

License

ISC

Unpacked Size

22.2 kB

Total Files

14

Last publish

Collaborators

  • healar
  • zhangxianglong
  • yangzhihao03
  • yingchanghong2
  • eiso
  • zerlous