From 6c2d5042cf4a7e794578e08e6fa2bce1be067b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20J=C3=A4ppinen?= Date: Thu, 18 Nov 2021 19:15:49 +0200 Subject: [PATCH] docs: add note about v12 being ESM to README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 974fbbbe0..9cca38044 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,10 @@ See [Releases](https://github.com/okonet/lint-staged/releases). ### Migration +#### v12 + +- Since `v12.0.0` _lint-staged_ is a pure ESM module, so make sure your Node.js version is at least `12.20.0`, `14.13.1`, or `16.0.0`. Read more about ESM modules from the official [Node.js Documentation site here](https://nodejs.org/api/esm.html#introduction). + #### v10 - From `v10.0.0` onwards any new modifications to originally staged files will be automatically added to the commit.