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

@modyqyw/eslint-config

An ESLint shareable config for javascript and typescript.

Usage

  • Install the config.
# for javascript
npm i eslint@~6.8.0 @modyqyw/eslint-config@~1.4.0 -D
# for typescript
npm i eslint@~6.8.0 @modyqyw/eslint-config@~1.4.0 typescript@~3.9.0 -D

For yarn, run scripts below.

# for javascript
yarn add eslint@~6.8.0 @modyqyw/eslint-config@~1.4.0 -D
# for typescript
yarn add eslint@~6.8.0 @modyqyw/eslint-config@~1.4.0 typescript@~3.9.0 -D
  • Set up.
// .eslintrc.js
module.exports = {
  extends: ["@modyqyw"],
};

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": "javascript",
    "*.wxss": "css",
    "*.axml": "html",
    "*.sjs": "javascript",
    "*.acss": "css",
    "*.wpy": "html",
    "*.json": "jsonc",
    "*.nvue": "vue"
  },
  "vetur.format.defaultFormatterOptions": {
    "prettyhtml": {
      "wrapAttributes": true
    }
  },
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  }
}

More Config

License

MIT

Copyright (c) 2020-present Millcloud

Current Tags

  • 1.4.0                                ...           latest (a day ago)

13 Versions

  • 1.4.0                                ...           a day ago
  • 1.3.0                                ...           9 days ago
  • 1.2.8                                ...           15 days ago
  • 1.2.7                                ...           17 days ago
  • 1.2.6                                ...           18 days ago
  • 1.2.5                                ...           18 days ago
  • 1.2.4                                ...           18 days ago
  • 1.2.3                                ...           18 days ago
  • 1.2.2                                ...           18 days ago
  • 1.2.1                                ...           18 days ago
  • 1.2.0                                ...           18 days ago
  • 1.1.0                                ...           18 days ago
  • 1.0.0                                ...           18 days ago
Maintainers (1)
Downloads
Today 0
This Week 7
This Month 119
Last Day 7
Last Week 9
Last Month 0
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |