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…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Charles Stover

Charles Stover

Staff front end engineer | Tech lead | Architect | charlesstover.com