* wip * wip * wip * Add tests * Update getSchedule.test.ts * Update types.ts * Self review fixes * Update text * PR feedback from Carina * Use utcoffset for range as well * Remove logging from the function that runs on every timeslot * Add one more test * Show x days instead of x+1 days for both ROLLING and ROLLING_WINDOW * refactor tests * Move bookingScenario imports to the top as they import prismock mock that has to be imported very early * More reordering of imports * Fix accidental min update at wrong place * Handle legacy value of zero for periodDays * Range fix * Fix isDateOutOfBound not being checked properly during booking. Also added a test for the case * Fix duplicate element, how the hell it reached there * Use today plus x days for ROLLING periodType * Add disabled for Checkbox as well * Revert logger.ts * Formatting Signed-off-by: zomars <zomars@me.com> * Fix ordering of imports that is causing tests failure --------- Signed-off-by: zomars <zomars@me.com> Co-authored-by: Alex van Andel <me@alexvanandel.com> Co-authored-by: Omar López <zomars@me.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
42 lines
1.0 KiB
JavaScript
42 lines
1.0 KiB
JavaScript
module.exports = {
|
|
bracketSpacing: true,
|
|
bracketSameLine: true,
|
|
singleQuote: false,
|
|
jsxSingleQuote: false,
|
|
trailingComma: "es5",
|
|
semi: true,
|
|
printWidth: 110,
|
|
arrowParens: "always",
|
|
endOfLine: "auto",
|
|
importOrder: [
|
|
// Mocks must be at the top as they contain vi.mock calls
|
|
"(.*)/__mocks__/(.*)",
|
|
// bookingScenario contains prismock that must be imported asap
|
|
"(.*)bookingScenario(.*)",
|
|
"<THIRD_PARTY_MODULES>",
|
|
"^@(calcom|ee)/(.*)$",
|
|
"^@lib/(.*)$",
|
|
"^@components/(.*)$",
|
|
"^@(server|trpc)/(.*)$",
|
|
"^~/(.*)$",
|
|
"^[./]",
|
|
],
|
|
importOrderSeparation: true,
|
|
plugins: [
|
|
"@trivago/prettier-plugin-sort-imports",
|
|
/**
|
|
* **NOTE** tailwind plugin must come last!
|
|
* @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss#compatibility-with-other-prettier-plugins
|
|
*/
|
|
"prettier-plugin-tailwindcss",
|
|
],
|
|
overrides: [
|
|
{
|
|
files: ["apps/website/lib/utils/wordlist/wordlist.ts"],
|
|
options: {
|
|
quoteProps: "consistent",
|
|
},
|
|
},
|
|
],
|
|
};
|