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
14 changes: 0 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,6 @@ on:
branches: [main, develop]

jobs:
squash-check:
name: Squash Check
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.base_ref == 'develop'
steps:
- name: Require single commit
run: |
COUNT=${{ github.event.pull_request.commits }}
if [ "$COUNT" -ne 1 ]; then
echo "PRs to develop must be squashed into a single commit. Found $COUNT commits."
exit 1
fi
echo "Squash check passed ($COUNT commit)."

lint:
name: Lint
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Registry settings
registry=https://registry.npmjs.org/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24.11.1
4 changes: 3 additions & 1 deletion electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ function createWindow() {
win = new BrowserWindow({
width: 1000,
height: 700,
resizable: false,
resizable: true,
minWidth: 800,
minHeight: 600,
icon: path.join(process.env.VITE_PUBLIC, "electron.svg"),
webPreferences: {
preload: path.join(__dirname, "preload.mjs"),
Expand Down
6 changes: 3 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default [
files: ['src/**/*.{ts,tsx}', 'electron/preload.ts'],
languageOptions: {
parser: tsParser,
ecmaVersion: 2020,
globals: sanitize(globals.browser),
ecmaVersion: 2022,
globals: { ...sanitize(globals.browser), structuredClone: 'readonly' },
},
plugins: {
'@typescript-eslint': tsPlugin,
Expand All @@ -35,7 +35,7 @@ export default [
files: ['electron/main.ts', 'vite.config.ts', 'vitest.config.ts'],
languageOptions: {
parser: tsParser,
ecmaVersion: 2020,
ecmaVersion: 2022,
globals: sanitize(globals.node),
},
plugins: {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Electron + Vite + React + FastAPI</title>
<title>OpenPep</title>
</head>
<body>
<div id="root"></div>
Expand Down
Loading
Loading