Skip to main content

eslint-plugin-typefest

ESLint plugin for teams that want consistent TypeScript-first conventions based on:

The plugin ships focused rule sets for modern Flat Config usage, with parser setup included in each preset.

Installationโ€‹

npm install --save-dev eslint-plugin-typefest typescript

@typescript-eslint/parser is loaded automatically by plugin presets.

Quick start (Flat Config)โ€‹

import typefest from "eslint-plugin-typefest";

export default [typefest.configs.recommended];

That is enough for TypeScript files (**/*.{ts,tsx,mts,cts}).

Presetsโ€‹

PresetPreset page
๐ŸŸข typefest.configs.minimalMinimal
๐ŸŸก typefest.configs.recommendedRecommended
๐ŸŸ  typefest.configs["recommended-type-checked"]Recommended (type-checked)
๐Ÿ”ด typefest.configs.strictStrict
๐ŸŸฃ typefest.configs.allAll
๐Ÿงช typefest.configs.experimentalExperimental
๐Ÿ’  typefest.configs["type-fest/types"]type-fest/types
โœด๏ธ typefest.configs["ts-extras/type-guards"]ts-extras/type-guards

Next stepsโ€‹

  • Open Getting Started in this sidebar.
  • Browse Presets for preset-by-preset guidance.
  • Use Rules to review every rule with examples.