Skip to content

Commit

Permalink
fix(eslint): use rc of typescript-eslint to fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed May 29, 2024
1 parent b85f52d commit 0884384
Show file tree
Hide file tree
Showing 3 changed files with 919 additions and 113 deletions.
12 changes: 7 additions & 5 deletions eslint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import globals from 'globals'
import {
parser as typescriptParser,
plugin as typescriptPlugin,
} from 'typescript-eslint'

const ERROR = 'error'
const WARN = 'warn'
Expand Down Expand Up @@ -120,15 +124,13 @@ export const config = [
? {
files: ['**/*.ts?(x)'],
languageOptions: {
parser: await import('@typescript-eslint/parser'),
parser: typescriptParser,
parserOptions: {
project: true,
projectService: true,
},
},
plugins: {
'@typescript-eslint': (
await import('@typescript-eslint/eslint-plugin')
).default,
'@typescript-eslint': typescriptPlugin,
},
rules: {
'@typescript-eslint/no-unused-vars': [
Expand Down
Loading

0 comments on commit 0884384

Please sign in to comment.