Skip to content

Commit

Permalink
fix: typescript project detection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Oct 7, 2024
1 parent ae23b49 commit d680c72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-birds-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mscharley/eslint-config': patch
---

Fix an issue with detecting typescript projects
8 changes: 5 additions & 3 deletions presets/eslint/rules/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ import { configs as tseslint } from 'typescript-eslint';
export default [
...tseslint.recommendedTypeChecked,
{
files: [
'**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts',
],
languageOptions: {
parserOptions: {
projectService: true,
},
},
},
{
files: [
'**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts',
],
rules: {
'@typescript-eslint/no-deprecated': 'warn',
'@typescript-eslint/array-type': [
Expand Down

0 comments on commit d680c72

Please sign in to comment.