Configuring TypeScript ESLint in your monorepo
If you are instantiating a TypeScript monorepo with a one-size-fits-all-packages ESLint configuration, you may encounter this error (or some variation) when linting your packages:
Line 0: Parsing error: Cannot read file 'tsconfig.json'Line 0: Parsing error: Cannot read file 'tsconfig.eslint.json'
In particular, this occurred for me when running Create React App’s
react-scripts build command in a monorepo package, as it failed to find the ESLint’s TypeScript project configuration file, whether I…