diff --git a/docs/basic-features/eslint.md b/docs/basic-features/eslint.md index 1ce00e9cdaf0..fd342db4c80f 100644 --- a/docs/basic-features/eslint.md +++ b/docs/basic-features/eslint.md @@ -114,13 +114,13 @@ If you're using `eslint-plugin-next` in a project where Next.js isn't installed "extends": "next", "settings": { "next": { - "rootDir": "/packages/my-app/" + "rootDir": "packages/my-app/" } } } ``` -`rootDir` can be a path (relative or absolute), a glob (i.e. `"/packages/*/"`), or an array of paths and/or globs. +`rootDir` can be a path (relative or absolute), a glob (i.e. `"packages/*/"`), or an array of paths and/or globs. ## Linting Custom Directories and Files diff --git a/errors/no-html-link-for-pages.md b/errors/no-html-link-for-pages.md index 0fe1449d69a9..38457ae4a46a 100644 --- a/errors/no-html-link-for-pages.md +++ b/errors/no-html-link-for-pages.md @@ -53,7 +53,7 @@ In some cases, you may also need to configure this rule directly by providing a ```json { "rules": { - "@next/next/no-html-link-for-pages": ["error", "/my-app/pages/"] + "@next/next/no-html-link-for-pages": ["error", "packages/my-app/pages/"] } } ```