@avolantis/eslint-config-typescript

0.1.2-alpha.1 • Public • Published

@avolantis/eslint-config-typescript

npm

Extends @avolantis/eslint-config with typescript support, using typescript-eslint. Use this preset as a base for typescript projects.

Install

Make sure that typescript@^4.6.3 is installed in the project.
Run the following commands using pnpm at your project root:

pnpm add -D eslint prettier @avolantis/eslint-config-typescript @avolantis/prettier-config

Use -WD instead, if running in a workspace root

Create an .eslintrc.{js,json,yml,yaml} file (preferably at workspace root):

# .eslintrc.yaml
root: true
parserOptions:
  project: path/to/tsconfig.json

# If you only have typescript files
extends: "@avolantis/eslint-config-typescript"

# Or apply config only to ts files
overrides:
  - files: "**/*.ts"
    extends: "@avolantis/eslint-config-typescript"

Then modify your package.json (at workspace root):

{
  "scrips": {
    "lint": "eslint --fix ."
  },
  "prettier": "@avolantis/prettier-config"
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.2-alpha.11latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.2-alpha.11
0.1.2-alpha.00
0.1.11
0.1.00

Package Sidebar

Install

npm i @avolantis/eslint-config-typescript

Weekly Downloads

2

Version

0.1.2-alpha.1

License

MIT

Unpacked Size

7.92 kB

Total Files

4

Last publish

Collaborators

  • bencelang