Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime"
"plugin:react/jsx-runtime",
"prettier"
],
"rules": {
"react/prop-types": "off"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Check formatting (Prettier)
run: npm run format:check

- name: Build app
run: npm run build

- name: Run Lighthouse CI
run: npm run lighthouse
env:
CHROME_PATH: /usr/bin/google-chrome
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
dist/
coverage/
storybook-static/
.lighthouseci/
package-lock.json
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "all",
"printWidth": 80,
"endOfLine": "lf",
"bracketSpacing": true,
"arrowParens": "always"
}
10 changes: 5 additions & 5 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ const config = {
addons: ['@storybook/addon-essentials'],
framework: {
name: '@storybook/react-vite',
options: {}
options: {},
},
docs: {
autodocs: 'tag'
}
}
autodocs: 'tag',
},
};

export default config
export default config;
22 changes: 11 additions & 11 deletions .storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { MemoryRouter } from 'react-router-dom'
import '../src/index.css'
import { MemoryRouter } from 'react-router-dom';
import '../src/index.css';

/** @type { import('@storybook/react').Preview } */
const preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i
}
date: /Date$/i,
},
},
backgrounds: {
default: 'light',
values: [
{ name: 'light', value: '#ffffff' },
{ name: 'dark', value: '#1a1a2e' },
{ name: 'high-contrast', value: '#03050f' }
]
}
{ name: 'high-contrast', value: '#03050f' },
],
},
},
decorators: [
(Story) => (
Expand All @@ -26,8 +26,8 @@ const preview = {
<Story />
</div>
</MemoryRouter>
)
]
}
),
],
};

export default preview
export default preview;
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ cp .env.example .env
- `npm run preview` — preview the production build
- `npm test` — run the automated Vitest suite
- `npm run test:watch` — watch mode for local test development
- `npm run format` — format all source files with Prettier
- `npm run format:check` — check formatting without modifying files (CI)
- `npm run lighthouse` — run Lighthouse CI against the local preview server

## Testing
Expand Down
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="RemitFlow - fast, low-cost cross-border remittance on Stellar." />
<meta
name="description"
content="RemitFlow - fast, low-cost cross-border remittance on Stellar."
/>
<title>RemitFlow</title>
</head>
<body>
Expand Down
4 changes: 1 addition & 3 deletions lighthouserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"ci": {
"collect": {
"startServerCommand": "npm run preview -- --host 127.0.0.1 --port 4173",
"url": [
"http://127.0.0.1:4173/"
],
"url": ["http://127.0.0.1:4173/"],
"numberOfRuns": 1,
"settings": {
"chromeFlags": "--no-sandbox --disable-dev-shm-usage"
Expand Down
Loading
Loading