0.0.11 • Published 10 months ago

@zhangwj0520/eslint-config-ts v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@zhangwj0520/eslint-config-ts

TypeScript eslint config presets

this config extends @zhangwj0520/eslint-config-base

Usage

Install

pnpm add -D eslint @zhangwj0520/eslint-config-ts

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

{
  "extends": "@zhangwj0520/eslint-config-ts"
}

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

add import alias

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

Add scripts for package.json

For example:

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

10 months ago

0.0.10

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.1.1

1 year ago