fix(project): remove old diagnostic, not needed anymore
MODIFY
internal/core/server/project/ProjectManager.ts
internal/core/server/project/ProjectManager.ts
@@ -955,16 +955,5 @@ export default class ProjectManager {
},
});
}
-
- if (PROJECT_CONFIG_FILENAMES.includes(path.getBasename())) {
- diagnostics.addDiagnostic({
- description: descriptions.PROJECT_MANAGER.MISPLACED_CONFIG(
- path.getBasename(),
- ),
- location: {
- path,
- },
- });
- }
}
}

MODIFY
internal/diagnostics/descriptions/projectManager.ts
internal/diagnostics/descriptions/projectManager.ts
@@ -100,15 +100,4 @@ export const projectManager = createDiagnosticsCategory({
message: markup`Invalid Rome config filename <emphasis>${invalidFilename}</emphasis>`,
advice: buildSuggestionAdvice(invalidFilename, validFilenames),
}),
- MISPLACED_CONFIG: (misplacedName: string) => ({
- category: DIAGNOSTIC_CATEGORIES["projectManager/misplacedConfig"],
- message: markup`Misplaced project config <emphasis>${misplacedName}</emphasis>`,
- advice: [
- {
- type: "log",
- category: "info",
- text: markup`This should be inside your project root folder`,
- },
- ],
- }),
});

MODIFY
website/src/_includes/docs/getting-started.md
website/src/_includes/docs/getting-started.md
@@ -18,7 +18,7 @@ npx rome init
After running this command, Rome will:
- Add itself to `package.json` as dependency if it wasn't present, and run your package manager to install
-- Generate `.config/rome.json` that serves as your project config.
+- Generate `rome.json` that serves as your project config.
If you're putting Rome into an already established project and you'd like to automatically apply formatting and fixes, you can use:

MODIFY
website/src/_includes/docs/project-config.md
website/src/_includes/docs/project-config.md
@@ -258,7 +258,7 @@ Ultimately, the configuration will look like this:
You can specify your project config in a few different places.
-##### `.config/rome.json` (recommended)
+##### `rome.json` (recommended)
This is the recommended location. It's the file we create when running `rome init`.

fix(project): remove old diagnostic, not needed anymore (#1657)