/** * @see https://prettier.io/docs/en/configuration.html * @type {import("prettier").Config} */ module.exports = { trailingComma: "es5", tabWidth: 4, semi: true, singleQuote: true, printWidth: 105, plugins: ["@ianvs/prettier-plugin-sort-imports"], // decorators-legacy lets the import sorter transform files with decorators importOrderParserPlugins: ["typescript", "decorators-legacy"], importOrder: [ /**---------------------- * Nest.js & node.js imports *------------------------**/ "^@nestjs(/.*)?$", "^@nestjs(/.*)?$", // matches imports starting with @nestjs "^(node:)", "", // Node.js built-in modules "", /**---------------------- * Third party packages *------------------------**/ "", "", // Imports not matched by other special words or groups. "", /**---------------------- * Application Code *------------------------**/ "^@app(/.*)?$", // matches type imports starting with @app "^@app(/.*)?$", "", "^[.]", "^[.]", // relative imports ], };