2023-12-08 22:35:15 +01:00
|
|
|
/** @typedef {import("prettier").Config} PrettierConfig */
|
|
|
|
|
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
|
|
|
|
|
|
2023-12-08 23:11:37 +01:00
|
|
|
/** @type { PrettierConfig | SortImportsConfig } */
|
2023-12-08 22:35:15 +01:00
|
|
|
const config = {
|
2023-12-10 17:12:20 +01:00
|
|
|
plugins: ["@ianvs/prettier-plugin-sort-imports"],
|
2023-12-08 22:35:15 +01:00
|
|
|
importOrder: [
|
2023-12-10 17:12:20 +01:00
|
|
|
"^(react/(.*)$)|^react$",
|
2023-12-08 22:35:15 +01:00
|
|
|
"^(next/(.*)$)|^(next$)",
|
|
|
|
|
"<THIRD_PARTY_MODULES>",
|
|
|
|
|
"",
|
2024-01-02 14:18:37 +01:00
|
|
|
"^@homarr/(.*)$",
|
2023-12-08 22:35:15 +01:00
|
|
|
"",
|
|
|
|
|
"^~/",
|
|
|
|
|
"^[../]",
|
|
|
|
|
"^[./]",
|
|
|
|
|
],
|
|
|
|
|
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
|
|
|
|
importOrderTypeScriptVersion: "4.4.0",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|