Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

ESLint configuration for JavaScript using stripped types, without TypeScript runtime features

Notifications You must be signed in to change notification settings

nickserv/eslint-config-types

Repository files navigation

eslint-config-types

ESLint configuration for JavaScript using stripped types, without TypeScript runtime features

Warning

This package will be deprecated in favor of the --erasableSyntaxOnly option in TypeScript 5.8.
If you're not already using eslint-config-types, I recommend trying out TypeScript 5.8 beta instead.

Installation

npm install --save-dev eslint eslint-config-types
pnpm install --save-dev eslint eslint-config-types
yarn add --dev eslint eslint-config-types @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint

Usage

In your eslint.config.js file, add:

import types from "eslint-config-types";

export default [
	types,
	// existing config (if any)
];

In your .eslintrc.json file, add:

"extends": "types/legacy"

Environment support

This config only allows TypeScript features supported in the following environments:

  • Babel
  • Bun
  • Deno
  • esbuild
  • Node.js
  • swc
  • Vite

Features to avoid

Inspiration

https://x.com/sebastienlorber/status/1820497162872226062

Thanks

About

ESLint configuration for JavaScript using stripped types, without TypeScript runtime features

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project