prettier-plugin-sort-re-exports
Version:
A prettier plugin that sorts the re-exports statements.
13 lines (12 loc) • 478 B
JavaScript
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;