Replace entire codebase with homarr-labs/homarr
This commit is contained in:
32
tooling/prettier/index.mjs
Normal file
32
tooling/prettier/index.mjs
Normal file
@@ -0,0 +1,32 @@
|
||||
/** @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;
|
||||
Reference in New Issue
Block a user