Skip to content

Commit

Permalink
chore: add imports sorter for Prettier (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaclen authored Sep 5, 2024
1 parent 6b3a30a commit abca0a7
Show file tree
Hide file tree
Showing 39 changed files with 605 additions and 136 deletions.
20 changes: 18 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,29 @@
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"plugins": [
"prettier-plugin-svelte",
"prettier-plugin-tailwindcss",
"@ianvs/prettier-plugin-sort-imports"
],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
],
"importOrder": [
"<BUILTIN_MODULES>",
"<THIRD_PARTY_MODULES>",
"",
"^([$]env)([/].*)$",
"^([$]app)([/].*)$",
"^([$]lib)([/].*)$",
"",
"^[.]"
],
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
"importOrderTypeScriptVersion": "5.0.0"
}
2 changes: 1 addition & 1 deletion electron/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import net from 'net';
import { join } from 'path';
import { app, BrowserWindow, utilityProcess, dialog } from 'electron';
import { app, BrowserWindow, dialog, utilityProcess } from 'electron';

// Vite default dev & production ports
const hollamaPort = app.isPackaged ? '4173' : '5173';
Expand Down
Loading

0 comments on commit abca0a7

Please sign in to comment.