UNPKG

eslint-plugin-perfectionist

Version:

ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.

5 lines (4 loc) 192 B
'use strict' Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }) let toSingleLine = string => string.replaceAll(/\s{2,}/gu, ' ').trim() exports.toSingleLine = toSingleLine