Skip to content

⬅️ Back to Table of Contents

📄 noFormat.ts

📊 Analysis Summary

Metric Count
🔧 Functions 1

📚 Table of Contents

🛠️ File Location:

📂 packages/rule-tester/src/noFormat.ts

Functions

noFormat(raw: TemplateStringsArray, keys: string[]): string

Code
export function noFormat(raw: TemplateStringsArray, ...keys: string[]): string {
  return String.raw({ raw }, ...keys);
}
  • JSDoc:

    /**
     * Simple no-op tag to mark code samples as "should not format with prettier"
     *   for the plugin-test-formatting lint rule
     */
    

  • Parameters:

  • raw: TemplateStringsArray
  • keys: string[]
  • Return Type: string
  • Calls:
  • String.raw