This commit updates diverse packages such as "@makerkit/data-loader-supabase-core" and "@makerkit/data-loader-supabase-nextjs" to the new versions in the package.json files. Also, several refactorings were done in logging within services and loaders by progressing 'server-only' imports and improving context handling. Additionally, type annotations have been added to several exported functions for better code readability and maintainability.
36 lines
965 B
JavaScript
36 lines
965 B
JavaScript
/** @typedef {import("prettier").Config} PrettierConfig */
|
|
/** @typedef {import("prettier-plugin-tailwindcss").PluginOptions} TailwindConfig */
|
|
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
|
|
|
|
/** @type { PrettierConfig | SortImportsConfig | TailwindConfig } */
|
|
const config = {
|
|
tabWidth: 2,
|
|
useTabs: false,
|
|
semi: true,
|
|
printWidth: 80,
|
|
singleQuote: true,
|
|
arrowParens: 'always',
|
|
importOrder: [
|
|
'/^(?!.*\\.css).*/',
|
|
'^server-only$',
|
|
'^react$',
|
|
'^react-dom$',
|
|
'^next$',
|
|
'^next/(.*)$',
|
|
'^@supabase/supabase-js$',
|
|
'^@supabase/gotrue-js$',
|
|
'<THIRD_PARTY_MODULES>',
|
|
'^@kit/(.*)$', // package imports
|
|
'^~/(.*)$', // app-specific imports
|
|
'^[./]', // relative imports
|
|
],
|
|
importOrderSeparation: true,
|
|
importOrderSortSpecifiers: true,
|
|
plugins: [
|
|
'@trivago/prettier-plugin-sort-imports',
|
|
'prettier-plugin-tailwindcss',
|
|
],
|
|
};
|
|
|
|
export default config;
|