1.2.5 • Published 16 days ago

@lehoczky/eslint-config-typescript v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

Eslint Config TypeScript

npm version

ESLint configuration for TypeScript projects with prettier.

💿 Installation

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

💻 Usage

.eslintrc.cjs:

module.exports = {
  root: true,
  extends: ["@lehoczky/eslint-config-typescript"],
}

Example command:

{
  "scripts": {
    "eslint:fix": "eslint . --ext .js,.ts --max-warnings=0 --fix"
  }
}

🛠 TSConfig

If your tsconfig.json file does not include every TypeScript file in the project, you can create a new tsconfig.eslint.json file and include every file in that.

This config will automatically use tsconfig.eslint.json file if it finds one in the root of your repository:

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "allowJs": true
  },
  "include": ["src/**/*", "./*.ts"]
}
1.2.5

16 days ago

1.2.4

1 month ago

1.2.3

2 months ago

1.2.2

2 months ago

1.2.1

3 months ago

1.2.0

4 months ago

1.1.0

6 months ago

1.0.0

6 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago