Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Commit 28b48ae

Browse files
nk1tzfuturepaul
authored andcommitted
fix: apply prettier formatting consistently, mod script, readme typo
1 parent 0748148 commit 28b48ae

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ just test-ui
2929

3030
### Formatting
3131

32-
Hopefully your editor picks up on the `.prettirrc` file and auto formats accordingly. If you want to format everything in the project run `pnpm run format`.
32+
Hopefully your editor picks up on the `prettier.config.mjs` file and auto formats accordingly. If you want to format everything in the project run `pnpm run format`.
3333

3434
### Deploying Web
3535

capacitor.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { CapacitorConfig } from '@capacitor/cli';
1+
import { CapacitorConfig } from "@capacitor/cli";
22

33
const config: CapacitorConfig = {
4-
appId: 'com.mutinywallet.mutinywallet',
5-
backgroundColor: "171717",
6-
appName: 'Mutiny Wallet',
7-
webDir: 'dist/public',
8-
server: {
9-
androidScheme: 'https'
10-
}
4+
appId: "com.mutinywallet.mutinywallet",
5+
backgroundColor: "171717",
6+
appName: "Mutiny Wallet",
7+
webDir: "dist/public",
8+
server: {
9+
androidScheme: "https"
10+
}
1111
};
1212

1313
export default config;

e2e/encrypt.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, expect } from "@playwright/test";
1+
import { expect, test } from "@playwright/test";
22

33
test.beforeEach(async ({ page }) => {
44
await page.goto("http://localhost:3420/");

e2e/load.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { test, expect } from "@playwright/test";
1+
import { expect, test } from "@playwright/test";
22

33
test.beforeEach(async ({ page }) => {
4-
await page.goto("http://localhost:3420/");
4+
await page.goto("http://localhost:3420/");
55
});
66

77
test("initial load", async ({ page }) => {
@@ -20,4 +20,3 @@ test("initial load", async ({ page }) => {
2020

2121
console.log("Page loaded.");
2222
});
23-

e2e/restore.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, expect } from "@playwright/test";
1+
import { expect, test } from "@playwright/test";
22

33
test.beforeEach(async ({ page }) => {
44
await page.goto("http://localhost:3420/");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"check-types": "tsc --noemit",
1010
"eslint": "eslint src",
1111
"pre-commit": "pnpm run eslint && pnpm run check-types && pnpm run format",
12-
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
12+
"format": "prettier --write \"{.,src/**,e2e/**}/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
1313
"check-format": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\""
1414
},
1515
"type": "module",

prettier.config.mjs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/** @type {import("prettier").Options} */
22
export default {
3-
trailingComma: "none",
4-
tabWidth: 4,
5-
semi: true,
6-
singleQuote: false,
7-
arrowParens: "always",
8-
printWidth: 80,
9-
useTabs: false,
3+
trailingComma: "none",
4+
tabWidth: 4,
5+
semi: true,
6+
singleQuote: false,
7+
arrowParens: "always",
8+
printWidth: 80,
9+
useTabs: false,
1010

11-
plugins: [
12-
"@ianvs/prettier-plugin-sort-imports",
13-
"prettier-plugin-tailwindcss", // MUST come last
14-
],
11+
plugins: [
12+
"@ianvs/prettier-plugin-sort-imports",
13+
"prettier-plugin-tailwindcss" // MUST come last
14+
],
1515

16-
tailwindFunctions: ["classList"],
16+
tailwindFunctions: ["classList"],
1717

18-
importOrder: ["<THIRD_PARTY_MODULES>", "", "^[~/]", "", "^[./]"],
18+
importOrder: ["<THIRD_PARTY_MODULES>", "", "^[~/]", "", "^[./]"]
1919
};

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"vite.config.ts",
2828
".eslintrc.cjs",
2929
"e2e/**/*",
30-
"capacitor.config.ts"
30+
"capacitor.config.ts",
31+
"prettier.config.mjs"
3132
],
3233
"exclude": [
3334
"node_modules",

0 commit comments

Comments
 (0)