UNPKG

@trivago/prettier-plugin-sort-imports

Version:

A prettier plugins to sort imports in provided RegEx order

9 lines (8 loc) 282 B
import { preprocessor } from './preprocessor.js'; export function defaultPreprocessor(code, options) { for (const extension of ['svelte', 'vue']) { if (options.filepath?.endsWith(`.${extension}`)) return code; } return preprocessor(code, options); }