Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/examples/eslint-plugin-test/docs/rules/no-foo.md
Comment thread
marcalexiei marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# test/no-foo

📝 Disallow using foo.

💼 This rule is enabled in the ✅ `recommended` config.

🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
Expand All @@ -10,8 +12,6 @@

❗ This rule identifies problems that could cause errors or unexpected behavior.

📝 Disallow using foo.

<!-- end auto-generated rule header -->

## Rule details
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/eslint-plugin-test/docs/rules/prefer-bar.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# test/prefer-bar

📝 Enforce using bar.

💼⚠️ This rule is enabled in the ✅ `recommended` config. This rule _warns_ in the 🎨 `stylistic` config.

💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
Expand All @@ -8,8 +10,6 @@

📖 This rule identifies potential improvements.

📝 Enforce using bar.

<!-- end auto-generated rule header -->

## Rule details
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/eslint-plugin-test/docs/rules/require-baz.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# test/require-baz

📝 Require using baz.

❌ This rule is deprecated. It was replaced by [`test/prefer-bar`](prefer-bar.md).

🚫 This rule is _disabled_ in the ⌨️ `typescript` config.
Expand All @@ -8,8 +10,6 @@

📏 This rule focuses on code formatting.

📝 Require using baz.

<!-- end auto-generated rule header -->

## Rule details
Expand Down
2 changes: 1 addition & 1 deletion lib/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const NOTICE_TYPE_DEFAULT_PRESENCE_AND_ORDERING: {
} = {
// Object keys ordered in display order.
// Object values indicate whether the column is displayed by default.
[NOTICE_TYPE.DESCRIPTION]: true,
[NOTICE_TYPE.DEPRECATED]: true, // Most important.
[NOTICE_TYPE.CONFIGS]: true,
[NOTICE_TYPE.FIXABLE]: false,
Expand All @@ -46,7 +47,6 @@ export const NOTICE_TYPE_DEFAULT_PRESENCE_AND_ORDERING: {
[NOTICE_TYPE.OPTIONS]: false,
[NOTICE_TYPE.REQUIRES_TYPE_CHECKING]: true,
[NOTICE_TYPE.TYPE]: false,
[NOTICE_TYPE.DESCRIPTION]: true,
};

// Using these variables ensures they have the correct type (not just a plain string).
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/cjs-config-extends/docs/rules/no-bar.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# test/no-bar

💼 This rule is enabled in the ✅ `recommended` config.

📝 Description of no-bar.

💼 This rule is enabled in the ✅ `recommended` config.

<!-- end auto-generated rule header -->
4 changes: 2 additions & 2 deletions test/fixtures/cjs-config-extends/docs/rules/no-baz.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# test/no-baz

💼 This rule is enabled in the ✅ `recommended` config.

📝 Description of no-baz.

💼 This rule is enabled in the ✅ `recommended` config.

<!-- end auto-generated rule header -->
4 changes: 2 additions & 2 deletions test/fixtures/cjs-config-extends/docs/rules/no-biz.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# test/no-biz

💼 This rule is enabled in the ✅ `recommended` config.

📝 Description of no-biz.

💼 This rule is enabled in the ✅ `recommended` config.

<!-- end auto-generated rule header -->
4 changes: 2 additions & 2 deletions test/fixtures/cjs-config-extends/docs/rules/no-foo.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# test/no-foo

💼 This rule is enabled in the ✅ `recommended` config.

📝 Description of no-foo.

💼 This rule is enabled in the ✅ `recommended` config.

<!-- end auto-generated rule header -->
16 changes: 8 additions & 8 deletions test/lib/generate/__snapshots__/cjs-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -46,43 +46,43 @@ exports[`generate (cjs) config that extends another config generates the documen
exports[`generate (cjs) config that extends another config generates the documentation 2`] = `
"# test/no-foo

💼 This rule is enabled in the ✅ \`recommended\` config.

📝 Description of no-foo.

💼 This rule is enabled in the ✅ \`recommended\` config.

<!-- end auto-generated rule header -->
"
`;

exports[`generate (cjs) config that extends another config generates the documentation 3`] = `
"# test/no-bar

💼 This rule is enabled in the ✅ \`recommended\` config.

📝 Description of no-bar.

💼 This rule is enabled in the ✅ \`recommended\` config.

<!-- end auto-generated rule header -->
"
`;

exports[`generate (cjs) config that extends another config generates the documentation 4`] = `
"# test/no-baz

💼 This rule is enabled in the ✅ \`recommended\` config.

📝 Description of no-baz.

💼 This rule is enabled in the ✅ \`recommended\` config.

<!-- end auto-generated rule header -->
"
`;

exports[`generate (cjs) config that extends another config generates the documentation 5`] = `
"# test/no-biz

💼 This rule is enabled in the ✅ \`recommended\` config.

📝 Description of no-biz.

💼 This rule is enabled in the ✅ \`recommended\` config.

<!-- end auto-generated rule header -->
"
`;
36 changes: 18 additions & 18 deletions test/lib/generate/__snapshots__/comment-markers-test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ exports[`generate (comment markers) no existing comment markers - minimal doc co
exports[`generate (comment markers) no existing comment markers - minimal doc content generates the documentation 2`] = `
"# test/no-foo

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

📝 Description of no-foo.

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
"
`;
Expand All @@ -58,10 +58,10 @@ since: "v0.12.0"
---
# test/no-foo

💼 This rule is enabled in the ✅ \`recommended\` config.

📝 Description.

💼 This rule is enabled in the ✅ \`recommended\` config.

<!-- end auto-generated rule header -->
Pre-existing notice about the rule being recommended.
## Rule details
Expand All @@ -85,10 +85,10 @@ Existing rules section content."
exports[`generate (comment markers) no existing comment markers - with no blank lines in existing content generates the documentation 2`] = `
"# test/no-foo

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

📝 Description of no-foo.

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
Existing rule doc content."
`;
Expand All @@ -111,10 +111,10 @@ Existing rules section content."
exports[`generate (comment markers) no existing comment markers - with one blank line around existing content generates the documentation 2`] = `
"# test/no-foo

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

📝 Description of no-foo.

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->

Existing rule doc content."
Expand All @@ -130,10 +130,10 @@ since: "v0.12.0"
---
# test/no-foo

💼 This rule is enabled in the ✅ \`recommended\` config.

📝 Description.

💼 This rule is enabled in the ✅ \`recommended\` config.

<!-- end auto-generated rule header -->
## Rule details
Details."
Expand All @@ -149,21 +149,21 @@ since: "v0.12.0"
---
# test/no-foo

💼 This rule is enabled in the ✅ \`recommended\` config.

📝 Description.

💼 This rule is enabled in the ✅ \`recommended\` config.

<!-- end auto-generated rule header -->
"
`;

exports[`generate (comment markers) rule doc without header marker but pre-existing header updates the documentation 1`] = `
"# test/no-foo

💼 This rule is enabled in the ✅ \`recommended\` config.

📝 Description.

💼 This rule is enabled in the ✅ \`recommended\` config.

<!-- end auto-generated rule header -->
Pre-existing notice about the rule being recommended.
## Rule details
Expand All @@ -189,10 +189,10 @@ No blank line before this."
exports[`generate (comment markers) with no blank lines around comment markers generates the documentation 2`] = `
"# test/no-foo

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

📝 Description of no-foo.

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->
No blank line before this."
`;
Expand All @@ -218,10 +218,10 @@ One blank line before this."
exports[`generate (comment markers) with one blank line around comment markers generates the documentation 2`] = `
"# test/no-foo

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

📝 Description of no-foo.

🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

<!-- end auto-generated rule header -->

One blank line before this."
Expand Down
Loading
Loading