Rename instances of `lint` to `check`
MODIFY
scripts/_constants.cjs
scripts/_constants.cjs
@@ -29,7 +29,7 @@ exports.lintRulesDocFolder = path.join(
"website",
"src",
"docs",
- "lint",
+ "check",
"rules",
);
exports.categoriesFile = path.join(

MODIFY
scripts/lint/update.cjs
scripts/lint/update.cjs
@@ -118,12 +118,12 @@ for (const {basename, category} of defs) {
const description = getDocRuleDescription(content);
if (!description) {
console.log(
- `/docs/lint/rules/${ruleNameKebabCase}.md is missing a description\n`,
+ `/docs/check/rules/${ruleNameKebabCase}.md is missing a description\n`,
);
}
countExistingDocFiles += 1;
- docTemplateTable += `| [${ruleNameKebabCase}](/docs/lint/rules/${ruleNameKebabCase}) | ${description ||
+ docTemplateTable += `| [${ruleNameKebabCase}](/docs/check/rules/${ruleNameKebabCase}) | ${description ||
""} |\n`;
continue;

RENAME
website/src/docs/lint/index.md
website/src/docs/check/index.md
RENAME
website/src/docs/lint/rules/camel-case.md
website/src/docs/check/rules/camel-case.md
RENAME
website/src/docs/lint/rules/index.md
website/src/docs/check/rules/index.md
@@ -16,7 +16,7 @@ showHero: false
| Rule | Description |
| ------------- | ------------- |
-| [camel-case](/docs/lint/rules/camel-case) | This rule enforce the use of camelCase |
+| [camel-case](/docs/check/rules/camel-case) | This rule enforce the use of camelCase |
| case-single-statement | |
| confusing-language | |
| default-export-same-basename | |

RENAME
website/src/docs/cli/commands/lint.md
website/src/docs/cli/commands/check.md
---
-title: rome lint
+title: rome check
layout: layouts/base.njk
---
-# `rome lint`
+# `rome check`

MODIFY
website/src/docs/cli/index.md
website/src/docs/cli/index.md
@@ -7,9 +7,9 @@ layout: layouts/base.njk
## Commands
+- [`check`](/docs/cli/commands/check)
- [`config`](/docs/cli/commands/config)
- [`init`](/docs/cli/commands/init)
-- [`lint`](/docs/cli/commands/lint)
- [`logs`](/docs/cli/commands/logs)
- [`lsp`](/docs/cli/commands/lsp)
- [`noop`](/docs/cli/commands/noop)

MODIFY
website/src/docs/getting-started.md
website/src/docs/getting-started.md
@@ -38,7 +38,7 @@ Refer to [Project Configuration](/docs/project-config) for more details.
### Run some commands
```bash
-rome lint
+rome check
```
### Install an editor extension

MODIFY
website/src/docs/project-config.md
website/src/docs/project-config.md
@@ -31,7 +31,7 @@ This can also be configured via the [`rome config` command](/docs/cli/commands/c
rome config set version "^0.0.0"
```
-### `lint`
+### `check`
See [Linting](/docs/lint#project-config) for lint config options.

Rename instances of `lint` to `check` (#659)