Skip to content

Commit

Permalink
fix: ignore Astro TS files in TypeScript ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
javalce committed Jan 9, 2025
1 parent 6b9f41c commit dc1d72d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { resolve } from 'node:path';

import { type Linter } from 'eslint';

import { TS_FILES, TSX_FILES } from '../constants';
import { ASTRO_TS_FILES, TS_FILES, TSX_FILES } from '../constants';
import eslintTypescriptConfig from '../rules/typescript';
import eslintExtensionConfig from '../rules/typescript/extension';
import eslintPluginImportConfig from '../rules/typescript/import';
Expand All @@ -27,6 +27,7 @@ export async function typescript({

const config = tseslint.config({
files: [TS_FILES, TSX_FILES],
ignores: [...ASTRO_TS_FILES],
extends: [
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.strictTypeChecked,
Expand Down

0 comments on commit dc1d72d

Please sign in to comment.