@modyqyw/eslint-config-vue
An ESLint shareable config for vue with javascript. Also support uni-app and weex.
Last updated a day ago by modyqyw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @modyqyw/eslint-config-vue 
SYNC missed versions from official npm registry.

@modyqyw/eslint-config-vue

An ESLint shareable config for vue with javascript. Also support uni-app and weex.

Usage

  • Install the config.
npm i vue@~2.6.0
npm i eslint@~6.8.0 @modyqyw/eslint-config-vue@~1.6.0 -D

For yarn, run scripts below.

yarn add vue@~2.6.0
yarn add eslint@~6.8.0 @modyqyw/eslint-config-vue@~1.6.0 -D
  • Set up.
// .eslintrc.js
module.exports = {
  extends: ["@modyqyw/vue"],
};

VSCode

  • Install plugins.
  • Set up Settings.json. Then F1 => Format Document => F1 => File: Save.
{
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "typescript": "typescriptreact",
    "json": "jsonc"
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "html",
    "vue",
    "vue-html"
  ],
  "files.eol": "\n",
  "files.associations": {
    "*.js": "javascriptreact",
    "*.ts": "typescriptreact",
    "*.wxml": "html",
    "*.wxs": "javascriptreact",
    "*.wxss": "css",
    "*.axml": "html",
    "*.sjs": "javascriptreact",
    "*.acss": "css",
    "*.wpy": "html",
    "*.json": "jsonc",
    "*.nvue": "vue",
    "*.ux": "vue"
  },
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  }
}

More Config

License

MIT

Copyright (c) 2020-present Millcloud

Current Tags

  • 1.6.1                                ...           latest (a day ago)

19 Versions

  • 1.6.1                                ...           a day ago
  • 1.6.0                                ...           4 days ago
  • 1.5.1                                ...           5 days ago
  • 1.5.0                                ...           5 days ago
  • 1.4.1                                ...           12 days ago
  • 1.4.0                                ...           12 days ago
  • 1.3.6                                ...           14 days ago
  • 1.3.5                                ...           18 days ago
  • 1.3.4                                ...           20 days ago
  • 1.3.3                                ...           21 days ago
  • 1.3.2                                ...           21 days ago
  • 1.3.1                                ...           21 days ago
  • 1.3.0                                ...           21 days ago
  • 1.2.1                                ...           21 days ago
  • 1.2.0                                ...           22 days ago
  • 1.1.2                                ...           22 days ago
  • 1.1.1                                ...           22 days ago
  • 1.1.0                                ...           22 days ago
  • 1.0.0                                ...           22 days ago
Maintainers (1)
Downloads
Today 1
This Week 37
This Month 193
Last Day 8
Last Week 21
Last Month 0
Dependencies (6)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |