UNPKG

@eslint/json

Version:

JSON linting plugin for ESLint

24 lines (23 loc) 826 B
/** * @fileoverview Utility Library * @author 루밀LuMir(lumirlumir) */ /** * @import { MemberNode } from "@humanwhocodes/momoa"; * @import { JSONSourceCode } from "./languages/json-source-code.js"; */ /** * Gets the `MemberNode`'s key value. * @param {MemberNode} node The node to get the key from. * @returns {string} The key value. */ export function getKey(node: MemberNode): string; /** * Gets the `MemberNode`'s raw key value. * @param {MemberNode} node The node to get the raw key from. * @param {JSONSourceCode} sourceCode The JSON source code object. * @returns {string} The raw key value. */ export function getRawKey(node: MemberNode, sourceCode: JSONSourceCode): string; import type { MemberNode } from "@humanwhocodes/momoa"; import type { JSONSourceCode } from "./languages/json-source-code.js";