Skip to content

vbs-plus/vue-cli-plugin-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published