From 0ef7e1b1ce1adfa5847d4e7193b9050308619939 Mon Sep 17 00:00:00 2001 From: busybox <29630035+busybox11@users.noreply.github.com> Date: Sun, 21 Jul 2024 06:03:58 +0200 Subject: [PATCH] Add missing require.resolve to @vercel/style-guide @vercel/style-guide eslint rules are not working without resolve.require --- docs/repo-docs/guides/tools/eslint.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/repo-docs/guides/tools/eslint.mdx b/docs/repo-docs/guides/tools/eslint.mdx index 65980f9642932..c8de0815ce0f0 100644 --- a/docs/repo-docs/guides/tools/eslint.mdx +++ b/docs/repo-docs/guides/tools/eslint.mdx @@ -105,11 +105,11 @@ const project = resolve(process.cwd(), 'tsconfig.json'); module.exports = { extends: [ - '@vercel/style-guide/eslint/node', - '@vercel/style-guide/eslint/typescript', - '@vercel/style-guide/eslint/browser', - '@vercel/style-guide/eslint/react', - '@vercel/style-guide/eslint/next', + require.resolve('@vercel/style-guide/eslint/node'), + require.resolve('@vercel/style-guide/eslint/typescript'), + require.resolve('@vercel/style-guide/eslint/browser'), + require.resolve('@vercel/style-guide/eslint/react'), + require.resolve('@vercel/style-guide/eslint/next'), // Turborepo custom eslint configuration configures the following rules: // - https://github.com/vercel/turbo/blob/main/packages/eslint-plugin-turbo/docs/rules/no-undeclared-env-vars.md 'eslint-config-turbo',