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…

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

React vs. Angular: The Ultimate Showdown

NextJS, WebAssembly, and Web Workers

React Native UI Kitten 4: What’s New?

How to build a real time chat application with Node.js, GraphQL and React — 2

Ruby Gems vs Javascript Libraries with some pretty cool libraries!

How to Install React on Linux Manjaro

Generate NFTs with metadata for Solana or Ethereum

Using Helping Verbs in English

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

More from Medium

Aliases in React, Jest and VSCode

Web Design — Implement Adaptive Tooltips in React (TypeScript)

Build and Package an NPM Component with esbuild, React and TypeScript

ESBuild, React and Typescript

How To Make Parallel API calls in React Applications — Typescript Version