Skip to content

Commit

Permalink
Code review responses
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Dec 3, 2024
1 parent c4a6e28 commit 05b5bc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import noDuplicateKeys from "./rules/no-duplicate-keys.js";
import noEmptyKeys from "./rules/no-empty-keys.js";
import noUnsafeValues from "./rules/no-unsafe-values.js";
import noUnnormalizedKeys from "./rules/no-unnormalized-keys.js";
import topLevelinterop from "./rules/top-level-interop.js";
import topLevelInterop from "./rules/top-level-interop.js";

//-----------------------------------------------------------------------------
// Plugin
Expand All @@ -34,7 +34,7 @@ const plugin = {
"no-empty-keys": noEmptyKeys,
"no-unsafe-values": noUnsafeValues,
"no-unnormalized-keys": noUnnormalizedKeys,
"top-level-interop": topLevelinterop,
"top-level-interop": topLevelInterop,
},
configs: {
recommended: {
Expand Down
4 changes: 2 additions & 2 deletions src/rules/top-level-interop.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export default {

docs: {
description:
"Disallow JSON top-level items are not an array or object",
"Require the JSON top-level value to be an array or object",
},

messages: {
topLevel:
'Top level item should be array or object, got "{{type}}".',
"Top level item should be array or object, got \"{{type}}\".",
},
},

Expand Down

0 comments on commit 05b5bc1

Please sign in to comment.