mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
wip: refresh design
This commit is contained in:
41
packages/prettier-config/index.cjs
Normal file
41
packages/prettier-config/index.cjs
Normal file
@ -0,0 +1,41 @@
|
||||
/** @type {import('prettier').Config} */
|
||||
module.exports = {
|
||||
arrowParens: 'always',
|
||||
printWidth: 100,
|
||||
semi: true,
|
||||
singleQuote: true,
|
||||
tabWidth: 2,
|
||||
trailingComma: 'all',
|
||||
|
||||
importOrder: [
|
||||
'^server-only|client-only$',
|
||||
'^react$',
|
||||
'^next(/.*)?$',
|
||||
'<THIRD_PARTY_MODULES>',
|
||||
'^@documenso/(.*)$',
|
||||
'^~/(.*)$',
|
||||
'^[./]',
|
||||
],
|
||||
importOrderSeparation: true,
|
||||
importOrderSortSpecifiers: true,
|
||||
// !: Waiting for these to make it upstream
|
||||
// importOrderMergeDuplicateImports: true,
|
||||
// importOrderCombineTypeAndValueImports: true,
|
||||
|
||||
plugins: [
|
||||
'@trivago/prettier-plugin-sort-imports',
|
||||
'prettier-plugin-sql',
|
||||
'prettier-plugin-tailwindcss',
|
||||
],
|
||||
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.sql'],
|
||||
options: {
|
||||
language: 'postgresql',
|
||||
keywordCase: 'upper',
|
||||
expressionWidth: 60,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
13
packages/prettier-config/package.json
Normal file
13
packages/prettier-config/package.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "@documenso/prettier-config",
|
||||
"version": "0.0.0",
|
||||
"main": "./index.cjs",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier-plugin-sql": "^0.14.0",
|
||||
"prettier-plugin-tailwindcss": "^0.2.8"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
Reference in New Issue
Block a user