Skip to content

Commit

Permalink
fix: remove unexposed and bugged methods (#2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-crouzet authored Nov 5, 2024
2 parents 4ec6c8f + 81d0312 commit 6a2000e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/@o3r/eslint-plugin/src/rules/json/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type ParserServices, TSESLint } from '@typescript-eslint/utils';
import type { AST } from 'jsonc-eslint-parser';

/** Basic interface for the Parser Services object provided by jsonc-eslint-parser */
type JsoncParserServices = ParserServices & {
Expand All @@ -14,24 +13,6 @@ export function isJsoncParserServices(parserServices: any): parserServices is Js
return !!parserServices && typeof parserServices.isJSON !== 'undefined';
}

/**
*
* @param node
* @param node.type
*/
export function isProperty(node?: {type: string}): node is AST.JSONProperty {
return !!node && node.type !== 'JSONProperty';
}

/**
*
* @param node
* @param node.type
*/
export function isObjectExpression(node?: { type: string }): node is AST.JSONObjectExpression {
return !!node && node.type !== 'JSONObjectExpression';
}

/**
* Retrieve the json parser services object or throw if the invalid parser is used
* @param context Rule context
Expand Down

0 comments on commit 6a2000e

Please sign in to comment.