eslint-config-relaxed-vue2

2.0.34 • Public • Published

eslint-config-relaxed-vue2

relaxed's vue2 eslint config presets extends ts config

Usage

Install

pnpm add -D eslint eslint-config-relaxed-vue2

Config eslint (.eslintrc | .eslintrc.js | .eslintrc.json)

{
  "extends": "relaxed-vue2"
}

You don't need .eslintignore normally as it has been provided by the preset.

add import alias

{
  "settings": {
    "import/resolver": {
      "alias": {
        "map": [
          ["~", "."],
          ["@", "./src"]
        ],
        "extensions": [".js", ".jsx", ".mjs", ".ts", ".tsx", "mts", ".d.ts"]
      }
    }
  }
}

Add scripts for package.json

For example:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-relaxed-vue2

Weekly Downloads

0

Version

2.0.34

License

MIT

Unpacked Size

1.76 kB

Total Files

3

Last publish

Collaborators

  • erkelost