Skip to content

Commit

Permalink
Add missing require.resolve to @vercel/style-guide (#8799)
Browse files Browse the repository at this point in the history
@vercel/style-guide eslint rules are not working without resolve.require
  • Loading branch information
busybox11 authored Jul 23, 2024
1 parent 08bd95d commit e2614de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/repo-docs/guides/tools/eslint.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e2614de

Please sign in to comment.