@manuth/eslint-plugin-typescript
TypeScript icon, indicating that this package has built-in type declarations

5.0.3 • Public • Published

ESLintPresets

status-badge

A set of personal eslint-rulesets for TypeScript-projects

Usage

Flat Config Interface

Import flatConfigs from this module and use the desired configurations:

eslint.config.js:

import { flatConfigs } from "@manuth/eslint-plugin-typescript";

export default [
    ...flatConfigs.recommendedWithTypeChecking
]

Following configurations are available:

  • weak:
    Lightweight configurations which prevent common issues from happening
  • weakWithTypeChecking:
    The weak configuration including rules which require type checking
  • recommended:
    An opinionated default configuration
  • recommendedWithTypeChecking:
    The recommended configuration including rules which require type checking

eslintrc (Legacy) Config Interface

Add the desired presets to the extends-list of your configuration:

.eslintrc.cjs:

module.exports = {
    extends = [
        "plugins:@manuth/typescript/recommended-requiring-type-checking"
    ];
};

Following configurations are available:

  • weak:
    Lightweight configurations which prevent common issues from happening
  • weak-requiring-type-checking:
    The weak configuration including rules which require type checking
  • recommended:
    An opinionated default configuration
  • recommended-requiring-type-checking:
    The recommended configuration including rules which require type checking

Readme

Keywords

Package Sidebar

Install

npm i @manuth/eslint-plugin-typescript

Weekly Downloads

61

Version

5.0.3

License

MIT

Unpacked Size

81.8 kB

Total Files

20

Last publish

Collaborators

  • lordgizmo