Also parse the extras from the comment field
This commit is contained in:
19
.prettierrc.ts
Normal file
19
.prettierrc.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { type Config } from "prettier";
|
||||
|
||||
const config: Config = {
|
||||
plugins: ["@trivago/prettier-plugin-sort-imports"],
|
||||
trailingComma: "none",
|
||||
printWidth: 120,
|
||||
importOrder: [
|
||||
"<BUILTIN_MODULES>",
|
||||
"<THIRD_PARTY_MODULES>",
|
||||
"(?:services|components|contexts|pages|libs|types)/(.*)$",
|
||||
"^[./].*\\.(?:ts|tsx)$",
|
||||
"\\.(?:scss|css)$",
|
||||
"^[./]"
|
||||
],
|
||||
importOrderSeparation: true,
|
||||
importOrderSortSpecifiers: true
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user