mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
fix: apply prettier formatting consistently, mod script, readme typo
This commit is contained in:
@@ -29,7 +29,7 @@ just test-ui
|
|||||||
|
|
||||||
### Formatting
|
### Formatting
|
||||||
|
|
||||||
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`.
|
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`.
|
||||||
|
|
||||||
### Deploying Web
|
### Deploying Web
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import { CapacitorConfig } from '@capacitor/cli';
|
import { CapacitorConfig } from "@capacitor/cli";
|
||||||
|
|
||||||
const config: CapacitorConfig = {
|
const config: CapacitorConfig = {
|
||||||
appId: 'com.mutinywallet.mutinywallet',
|
appId: "com.mutinywallet.mutinywallet",
|
||||||
backgroundColor: "171717",
|
backgroundColor: "171717",
|
||||||
appName: 'Mutiny Wallet',
|
appName: "Mutiny Wallet",
|
||||||
webDir: 'dist/public',
|
webDir: "dist/public",
|
||||||
server: {
|
server: {
|
||||||
androidScheme: 'https'
|
androidScheme: "https"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { test, expect } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
|
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await page.goto("http://localhost:3420/");
|
await page.goto("http://localhost:3420/");
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { test, expect } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
|
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await page.goto("http://localhost:3420/");
|
await page.goto("http://localhost:3420/");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("initial load", async ({ page }) => {
|
test("initial load", async ({ page }) => {
|
||||||
@@ -20,4 +20,3 @@ test("initial load", async ({ page }) => {
|
|||||||
|
|
||||||
console.log("Page loaded.");
|
console.log("Page loaded.");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { test, expect } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
|
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await page.goto("http://localhost:3420/");
|
await page.goto("http://localhost:3420/");
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"check-types": "tsc --noemit",
|
"check-types": "tsc --noemit",
|
||||||
"eslint": "eslint src",
|
"eslint": "eslint src",
|
||||||
"pre-commit": "pnpm run eslint && pnpm run check-types && pnpm run format",
|
"pre-commit": "pnpm run eslint && pnpm run check-types && pnpm run format",
|
||||||
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
|
"format": "prettier --write \"{.,src/**,e2e/**}/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
|
||||||
"check-format": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\""
|
"check-format": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\""
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
/** @type {import("prettier").Options} */
|
/** @type {import("prettier").Options} */
|
||||||
export default {
|
export default {
|
||||||
trailingComma: "none",
|
trailingComma: "none",
|
||||||
tabWidth: 4,
|
tabWidth: 4,
|
||||||
semi: true,
|
semi: true,
|
||||||
singleQuote: false,
|
singleQuote: false,
|
||||||
arrowParens: "always",
|
arrowParens: "always",
|
||||||
printWidth: 80,
|
printWidth: 80,
|
||||||
useTabs: false,
|
useTabs: false,
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
"@ianvs/prettier-plugin-sort-imports",
|
"@ianvs/prettier-plugin-sort-imports",
|
||||||
"prettier-plugin-tailwindcss", // MUST come last
|
"prettier-plugin-tailwindcss" // MUST come last
|
||||||
],
|
],
|
||||||
|
|
||||||
tailwindFunctions: ["classList"],
|
tailwindFunctions: ["classList"],
|
||||||
|
|
||||||
importOrder: ["<THIRD_PARTY_MODULES>", "", "^[~/]", "", "^[./]"],
|
importOrder: ["<THIRD_PARTY_MODULES>", "", "^[~/]", "", "^[./]"]
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -27,7 +27,8 @@
|
|||||||
"vite.config.ts",
|
"vite.config.ts",
|
||||||
".eslintrc.cjs",
|
".eslintrc.cjs",
|
||||||
"e2e/**/*",
|
"e2e/**/*",
|
||||||
"capacitor.config.ts"
|
"capacitor.config.ts",
|
||||||
|
"prettier.config.mjs"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
|||||||
Reference in New Issue
Block a user