From 92b030965f05b743503a9252b3f1aeb23ea9965b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Thu, 8 Sep 2022 13:32:44 +0200 Subject: [PATCH] Fix formatting --- README.md | 4 ++-- docs/rules/community-package-json-name-still-default.md | 2 +- .../community-package-json-repository-url-still-default.md | 2 +- lib/rules/community-package-json-name-still-default.ts | 2 +- .../community-package-json-repository-url-still-default.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6882a95..4acebf6 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,8 @@ In the `community` ruleset, the five `*-still-default` rules allow you to define | [community-package-json-n8n-nodes-empty](docs/rules/community-package-json-n8n-nodes-empty.md) | The `n8n.nodes` value in the `package.json` of a community package must contain at least one filepath. | No | | [community-package-json-n8n-nodes-missing](docs/rules/community-package-json-n8n-nodes-missing.md) | The `n8n.nodes` key must be present in the `package.json` of a community package. | No | | [community-package-json-name-missing](docs/rules/community-package-json-name-missing.md) | The `name` key must be present in the `package.json` of a community package. | No | -| [community-package-json-name-still-default](docs/rules/community-package-json-name-still-default.md) | The `name` key in the `package.json` of a community package must be different from the default value n8n-nodes-<...> or a user-defined default. | No | -| [community-package-json-repository-url-still-default](docs/rules/community-package-json-repository-url-still-default.md) | The `repository.url` value in the `package.json` of a community package must be different from the default value https://github.com/<...>/n8n-nodes-<...>.git or a user-defined default. | No | +| [community-package-json-name-still-default](docs/rules/community-package-json-name-still-default.md) | The `name` key in the `package.json` of a community package must be different from the default value `n8n-nodes-<...>` or a user-defined default. | No | +| [community-package-json-repository-url-still-default](docs/rules/community-package-json-repository-url-still-default.md) | The `repository.url` value in the `package.json` of a community package must be different from the default value `https://github.com/<...>/n8n-nodes-<...>.git` or a user-defined default. | No | | [community-package-json-version-missing](docs/rules/community-package-json-version-missing.md) | The `version` key must be present in the `package.json` of a community package. | No | | [cred-class-field-authenticate-type-assertion](docs/rules/cred-class-field-authenticate-type-assertion.md) | In a credential class, the field `authenticate` must be typed `IAuthenticateGeneric` | Yes | | [cred-class-field-display-name-miscased](docs/rules/cred-class-field-display-name-miscased.md) | `displayName` field in credential class must be title cased. | Yes | diff --git a/docs/rules/community-package-json-name-still-default.md b/docs/rules/community-package-json-name-still-default.md index a262d94..4cc90e5 100644 --- a/docs/rules/community-package-json-name-still-default.md +++ b/docs/rules/community-package-json-name-still-default.md @@ -2,7 +2,7 @@ # community-package-json-name-still-default -The `name` key in the `package.json` of a community package must be different from the default value n8n-nodes-<...> or a user-defined default. +The `name` key in the `package.json` of a community package must be different from the default value `n8n-nodes-<...>` or a user-defined default. 📋 This rule is part of the `plugin:n8n-nodes-base/community` config. diff --git a/docs/rules/community-package-json-repository-url-still-default.md b/docs/rules/community-package-json-repository-url-still-default.md index 962bd86..7282af8 100644 --- a/docs/rules/community-package-json-repository-url-still-default.md +++ b/docs/rules/community-package-json-repository-url-still-default.md @@ -2,7 +2,7 @@ # community-package-json-repository-url-still-default -The `repository.url` value in the `package.json` of a community package must be different from the default value https://github.com/<...>/n8n-nodes-<...>.git or a user-defined default. +The `repository.url` value in the `package.json` of a community package must be different from the default value `https://github.com/<...>/n8n-nodes-<...>.git` or a user-defined default. 📋 This rule is part of the `plugin:n8n-nodes-base/community` config. diff --git a/lib/rules/community-package-json-name-still-default.ts b/lib/rules/community-package-json-name-still-default.ts index 0a98115..e2f5512 100644 --- a/lib/rules/community-package-json-name-still-default.ts +++ b/lib/rules/community-package-json-name-still-default.ts @@ -13,7 +13,7 @@ export default utils.createRule({ meta: { type: "problem", docs: { - description: `The \`name\` key in the \`package.json\` of a community package must be different from the default value ${COMMUNITY_PACKAGE_JSON.NAME} or a user-defined default.`, + description: `The \`name\` key in the \`package.json\` of a community package must be different from the default value \`${COMMUNITY_PACKAGE_JSON.NAME}\` or a user-defined default.`, recommended: "error", }, schema: [ diff --git a/lib/rules/community-package-json-repository-url-still-default.ts b/lib/rules/community-package-json-repository-url-still-default.ts index 9463323..5d05a0e 100644 --- a/lib/rules/community-package-json-repository-url-still-default.ts +++ b/lib/rules/community-package-json-repository-url-still-default.ts @@ -12,7 +12,7 @@ export default utils.createRule({ meta: { type: "problem", docs: { - description: docline`The \`repository.url\` value in the \`package.json\` of a community package must be different from the default value ${COMMUNITY_PACKAGE_JSON.REPOSITORY_URL} or a user-defined default.`, + description: docline`The \`repository.url\` value in the \`package.json\` of a community package must be different from the default value \`${COMMUNITY_PACKAGE_JSON.REPOSITORY_URL}\` or a user-defined default.`, recommended: "error", }, schema: [