Skip to content

feat: add url and recommended field to existing rules #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions src/rules/no-duplicate-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const rule = {

docs: {
description: "Disallow duplicate keys in JSON objects",
url: "https://github.com/eslint/json#rules",
},

messages: {
Expand Down
1 change: 1 addition & 0 deletions src/rules/no-empty-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const rule = {

docs: {
description: "Disallow empty keys in JSON objects",
url: "https://github.com/eslint/json#rules",
},

messages: {
Expand Down
1 change: 1 addition & 0 deletions src/rules/no-unnormalized-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const rule = {

docs: {
description: "Disallow JSON keys that are not normalized",
url: "https://github.com/eslint/json#rules",
},

messages: {
Expand Down
1 change: 1 addition & 0 deletions src/rules/no-unsafe-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const rule = {

docs: {
description: "Disallow JSON values that are unsafe for interchange",
url: "https://github.com/eslint/json#rules",
},

messages: {
Expand Down
1 change: 1 addition & 0 deletions src/rules/sort-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const rule = {

docs: {
description: `Require JSON object keys to be sorted`,
url: "https://github.com/eslint/json#rules",
},

messages: {
Expand Down
1 change: 1 addition & 0 deletions src/rules/top-level-interop.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const rule = {
docs: {
description:
"Require the JSON top-level value to be an array or object",
url: "https://github.com/eslint/json#rules",
},

messages: {
Expand Down
Loading