UNPKG

prettier-plugin-sort-re-exports

Version:
13 lines (12 loc) 478 B
import parserBabel from "prettier/parser-babel"; import parserTypescript from "prettier/parser-typescript"; import { preprocessor } from "./preprocessor.js"; const { parsers: babelParsers } = parserBabel; const { parsers: typescriptParsers } = parserTypescript; const plugin = { parsers: { babel: { ...babelParsers.babel, preprocess: preprocessor }, typescript: { ...typescriptParsers.typescript, preprocess: preprocessor }, }, }; export default plugin;