2.0.3 • Published 8 months ago

@lehoczky/eslint-config-typescript v2.0.3

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

Eslint Config TypeScript

npm version

ESLint configuration for TypeScript projects. Supports prettier by default.

💿 Installation

pnpm add -D eslint typescript @lehoczky/eslint-config-typescript

💻 Usage

With Type Checking

eslint.config.mjs:

import { configLehoczkyTypescript } from "@lehoczky/eslint-config-typescript"

/** @type {import("eslint").Linter.Config[]} */
export default configLehoczkyTypescript({
  parserOptionsForTypeChecking: {
    projectService: true,
    tsconfigRootDir: import.meta.dirname,
  },
})

See more: typescript-eslint | Linting with Type Information

Without Type Checking

import { configLehoczkyTypescript } from "@lehoczky/eslint-config-typescript"

/** @type {import("eslint").Linter.Config[]} */
export default configLehoczkyTypescript()

📢 Commands

package.json:

{
  "scripts": {
    "eslint:check": "eslint --max-warnings=0",
    "eslint:fix": "eslint --max-warnings=0 --fix"
  }
}
2.0.3

8 months ago

2.0.2

8 months ago

1.3.0

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.2.6

11 months ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago