Eslint extension highlighted some issues with the way we were importing the tsconfig.json file in the .eslintrc.json file. By changing the extension to .cjs, we are now able to set tsconfigRootDir to the root of the package thanks to `dirname`. It helps eslint to find the correct tsconfig.json file.
9 lines
122 B
JSON
9 lines
122 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"exclude": [],
|
|
"include": [
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
".eslintrc.cjs"
|
|
]
|
|
} |