Skip to content

Commit

Permalink
Fix linting for nested tsx files
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-Dunker committed Oct 16, 2023
1 parent 33b67c2 commit 2886eea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"plugin:react-hooks/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"plugins": ["@typescript-eslint/eslint-plugin"],
// "parserOptions": {
// "project": "./tsconfig.eslint.json"
// },
"plugins": ["@typescript-eslint"],
"rules": {
"react/react-in-jsx-scope": "off",
"@typescript-eslint/explicit-function-return-type": "off",
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* 10-16-23: This file currently isn't being used for linting, as it's typically only for monorepos.
Since we want all typescript files to be linted with the same rules, we don't need it! */
{
"extends": "./tsconfig.json",
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
Expand Down

0 comments on commit 2886eea

Please sign in to comment.