From ffda00f212f2532939b58d6a1630c2af054ade3f Mon Sep 17 00:00:00 2001 From: Louis Chan Date: Sun, 6 Oct 2024 19:09:54 +0800 Subject: [PATCH] Add --legacy-peer-deps --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9a4dc5..d7976cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,13 @@ jobs: - uses: actions/setup-node@v4 with: node-version-file: "./.tool-versions" - - run: npm ci + # We need to add --legacy-peer-deps because + # eslint-plugin-tsdoc + # eslint-plugin-react-native + # eslint-plugin-react-hooks + # They do not officially support eslint 9 + # We make them compatible with eslint 9 with @eslint/compat + - run: npm ci --legacy-peer-deps - run: make print-all-rules - run: make check-all-rules-are-considered - run: npm run format