Skip to content

Commit

Permalink
chore(eslint): configure ESLint to use tsconfig.eslint.json for impro…
Browse files Browse the repository at this point in the history
…ved TypeScript support and add missing configuration file
  • Loading branch information
guidomodarelli committed Nov 29, 2024
1 parent 881b1cb commit 1bb79ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ module.exports = {
},
ecmaVersion: 'latest',
sourceType: 'module',
projectService: true,
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json'],
},
settings: {
'import/resolver': {
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", ".eslintrc.js"]
}

0 comments on commit 1bb79ed

Please sign in to comment.