Until this โ๏ธ Type-aware linter ยท Issue #3187 ยท biomejs/biome is resolved, we continue to use @typescript-eslint/parser
and @typescript-eslint/eslint-plugin
to lint TypeScript files.
Add the following recommended rules to your ESLint configuration for effective linting of TypeScript files:
{
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-redundant-type-constituents": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/require-await": "error"
}
To use eslint-fixer, follow these steps:
# Install eslint-fixer
npm install --global eslint-fixer
# Run eslint-fixer
npx eslint-fixer
If this project has helped you, please give it a โญ๏ธ!