Skip to content
You are viewing the v1 archive. For current setup guidance, use the v3 docs; the v2 release is preserved at /v2/.

TypeScript

Package: @santi020k/eslint-config-typescript

Use the TypeScript package when you want type-aware rules layered into the shared config stack.

import { eslintConfig } from '@santi020k/eslint-config-basic'
export default eslintConfig({
typescript: true
})
  • Type-aware rules built on top of typescript-eslint.
  • Project-service configuration for real TypeScript projects.
  • A shared base for framework packages that depend on embedded or generated TypeScript.

This package also handles the virtual-file story used by frameworks like Astro, Vue, Svelte, Markdown, and MDX by disabling type-checked rules in generated embedded files where appropriate.

The @santi020k/eslint-config-basic package automatically enables TypeScript support if a tsconfig.json file is found in your project root.

  • Implicit: If you call eslintConfig() without options, TypeScript is enabled if detected.
  • Explicit Priority: If you provide typescript: true or typescript: false in the options, your choice always overrides the auto-detection.
  • Advanced Options: You can pass an object to typescript to configure specific behaviors like the project path:
export default eslintConfig({
typescript: {
project: './tsconfig.lint.json'
}
})
  • Strict mode can still promote TypeScript warning rules to errors on top of the base config.
  • Many framework packages (like Angular or NestJS) will also trigger TypeScript support automatically.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.