0.1.0 • Published 1 year ago

@productsway/eslint-fixer v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Motivation

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.

Recommended Rules

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"
}

Usage

To use eslint-fixer, follow these steps:

# Install eslint-fixer
npm install --global eslint-fixer

# Run eslint-fixer
npx eslint-fixer

Resources

Show Your Support

If this project has helped you, please give it a ⭐️!