aboutsummaryrefslogtreecommitdiff
path: root/.prettierrc.js
diff options
context:
space:
mode:
Diffstat (limited to '.prettierrc.js')
-rw-r--r--.prettierrc.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/.prettierrc.js b/.prettierrc.js
new file mode 100644
index 0000000..98b603f
--- /dev/null
+++ b/.prettierrc.js
@@ -0,0 +1,16 @@
+/** @type {import('prettier').Config} */
+module.exports = {
+ useTabs: true,
+ printWidth: 100,
+ singleQuote: true,
+ trailingComma: 'none',
+ bracketSameLine: false,
+ semi: true,
+ quoteProps: 'consistent',
+ importOrder: ['^([A-Za-z]|@[^s/])', '^@polyfrost/(interface|client|ui)(/.*)?$', '^~/', '^\\.'],
+ importOrderSortSpecifiers: true,
+ importOrderParserPlugins: ['importAssertions', 'typescript', 'jsx'],
+ pluginSearchDirs: false,
+ plugins: ['@trivago/prettier-plugin-sort-imports', 'prettier-plugin-tailwindcss'],
+ tailwindConfig: './packages/ui/tailwind.config.js'
+}