securityos/node_modules/stylelint/lib/utils/getFormatterOptionsText.js

15 lines
320 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
const formatters = require('../formatters');
/**
* @param {string} separator
* @param {string} [quote]
* @returns {string}
*/
module.exports = function getFormatterOptionsText(separator, quote = '') {
return Object.keys(formatters)
.map((name) => `${quote}${name}${quote}`)
.join(separator);
};