Skip to content

Commit

Permalink
fix(eslint): incorrect project setting for ts in md/mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 10, 2023
1 parent 9ac862e commit 5a91ffb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/eslint-config/overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,14 @@ exports.ts = [
},
},
{
files: ['*.cts', '*.mts', '*.ts', '*.tsx'],
excludedFiles: ['*.d.cts', '*.d.mts', '*.d.ts'],
files: '**/*.{md,mdx}/**/*.{cts,mts,ts,tsx}',
parserOptions: {
project: null,
},
},
{
files: '*.{cts,mts,ts,tsx}',
excludedFiles: ['**/*.{md,mdx}/**/*.{cts,mts,ts,tsx}', '*.d.{cts,mts,ts}'],
extends: ['plugin:@typescript-eslint/recommended-requiring-type-checking'],
rules: {
'@typescript-eslint/no-floating-promises': [
Expand Down

0 comments on commit 5a91ffb

Please sign in to comment.