#
flavortown
Here are 4 public repositories matching this topic...
MichaReiser
commented
Apr 14, 2022
Prettier detects the ideal quote to use for a string so that the least amount of escaped quotes are necessary:
function getPreferredQuote(rawContent, preferredQuote) {
/** @type {{ quote: '"', regex: RegExp, escaped: """ }} */
const double = { quote: '"', regex: /"/g, escaped: """ };
/** @type {{ quote: "'", regex: RegExp, escaped: "'" }} */
const single = { quo
good first issue
Good for newcomers
formatter
Issues related to the code formatter used for all languages
-
Updated
Nov 8, 2017 - JavaScript
Improve this page
Add a description, image, and links to the flavortown topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the flavortown topic, visit your repo's landing page and select "manage topics."
How are you using Babel?
babel-loader (webpack)
Input code
https://babeljs.io/repl#?browsers=defaults&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=C4TwDgpgBAYgrgOwMYHUCWwAWARCBnJAJzTGDQHsEoBeKAbQCgooAzRJMygLigAoA