You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
553 B
22 lines
553 B
/* eslint-disable */
|
|
const tailwind = require('prettier-plugin-tailwindcss');
|
|
const organizeImports = require('prettier-plugin-organize-imports');
|
|
|
|
const combinedFormatter = {
|
|
...tailwind,
|
|
parsers: {
|
|
...tailwind.parsers,
|
|
...Object.keys(organizeImports.parsers).reduce((acc, key) => {
|
|
acc[key] = {
|
|
...tailwind.parsers[key],
|
|
preprocess(code, options) {
|
|
return organizeImports.parsers[key].preprocess(code, options);
|
|
},
|
|
};
|
|
return acc;
|
|
}, {}),
|
|
},
|
|
};
|
|
|
|
module.exports = combinedFormatter;
|