mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-29 18:59:20 +01:00
33 lines
784 B
JavaScript
33 lines
784 B
JavaScript
/** @typedef {import("prettier").Config} PrettierConfig */
|
|
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
|
|
|
|
/** @type { PrettierConfig | SortImportsConfig } */
|
|
const config = {
|
|
plugins: ["@ianvs/prettier-plugin-sort-imports", "prettier-plugin-packagejson"],
|
|
importOrder: [
|
|
"^(react/(.*)$)|^react$",
|
|
"^(next/(.*)$)|^(next$)",
|
|
"<THIRD_PARTY_MODULES>",
|
|
"",
|
|
"^@homarr/(.*)$",
|
|
"",
|
|
"^~/",
|
|
"^[../]",
|
|
"^[./]",
|
|
],
|
|
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
|
printWidth: 120,
|
|
importOrderTypeScriptVersion: "4.4.0",
|
|
overrides: [
|
|
{
|
|
files: "*.json.hbs",
|
|
options: {
|
|
parser: "json",
|
|
},
|
|
},
|
|
],
|
|
endOfLine: "lf",
|
|
};
|
|
|
|
export default config;
|