2.0.9 • Published 8 months ago
@lehoczky/eslint-config-typescript v2.0.9
Eslint Config TypeScript
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.5
10 months ago
2.0.4
1 year ago
2.0.7
9 months ago
2.0.6
10 months ago
2.0.9
8 months ago
2.0.8
8 months ago
2.0.3
1 year ago
2.0.2
1 year ago
1.3.0
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.2.6
1 year ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years 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