1.0.1 • Published 6 months ago

eslint-config-types v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

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

1.0.1

6 months ago

1.0.0

12 months ago

1.0.0-alpha.6

12 months ago

1.0.0-alpha.5

12 months ago

1.0.0-alpha.4

12 months ago

1.0.0-alpha.3

12 months ago

1.0.0-legacy.1

12 months ago

1.0.0-legacy.2

12 months ago

1.0.0-alpha.2

12 months ago

1.0.0-legacy.3

12 months ago

1.0.0-legacy.4

12 months ago

1.0.0-legacy.5

12 months ago

1.0.0-legacy.6

12 months ago

1.0.0-alpha.1

12 months ago