Skip to content

⬅️ Back to Table of Contents

📄 parserSeemsToBeTSESLint.ts

📊 Analysis Summary

Metric Count
🔧 Functions 1

📚 Table of Contents

🛠️ File Location:

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

Functions

parserSeemsToBeTSESLint(parser: string | undefined): boolean

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