Skip to content

⬅️ Back to Table of Contents

📄 parserSeemsToBeTSESLint

📊 Analysis Summary

Metric Count
🔧 Functions 1

📚 Table of Contents

🛠️ File Location:

📂 packages/utils/src/eslint-utils/parserSeemsToBeTSESLint.ts

Functions

parserSeemsToBeTSESLint(parser: string | undefined): boolean

Parameters:

  • parser string | undefined

Returns: boolean

Calls:

  • /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test
Code
export function parserSeemsToBeTSESLint(parser: string | undefined): boolean {
  return !!parser && /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(parser);
}

Generated by Syntax Scribe