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

Do It Yourself XD Plugin(s) for Beginners: Part 1

Creating A Deno/Node.js package

The Node.js logo with the Deno mascot on either side, looking at Node.js

NODE — HackTheBox WriteUp

webpack4 key concepts

Why you should start to use Expo

Bulk Transfer NFTs on Ethereum with Node.JS

How To Use JavaScript Closures in 5 Minutes

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

Type Safe and Exhaustive ‘switch’ statements, aka Pattern Matching in TypeScript

Typescript

Gradually migrating to typescript across multiple js codebases with a mid-size team

Compound Component Design Pattern in React