TypeScript
Package: @santi020k/eslint-config-typescript
Use the TypeScript package when you want type-aware rules layered into the shared config stack.
Enable It
Section titled “Enable It”import { eslintConfig } from '@santi020k/eslint-config-basic'
export default eslintConfig({ typescript: true})What It Adds
Section titled “What It Adds”- 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.
Virtual Files and Embedded Scripts
Section titled “Virtual Files and Embedded Scripts”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.
Auto-Detection & Priority
Section titled “Auto-Detection & Priority”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: trueortypescript: falsein the options, your choice always overrides the auto-detection. - Advanced Options: You can pass an object to
typescriptto 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.
Repository Links
Section titled “Repository Links”- Source Package: packages/typescript
- Playground: packages/playground/typescript
Related Pages
Section titled “Related Pages”Did this page help?
One click helps us spot documentation that needs another pass. No personal data is sent.