Skip to content

Commit d3de2a2

Browse files
committed
fix: lint
1 parent 47f2607 commit d3de2a2

File tree

6 files changed

+212
-9
lines changed

6 files changed

+212
-9
lines changed

.github/workflows/build-image.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
matrix:
3535
platform:
3636
- linux/arm64/v8
37-
- linux/arm
3837
- linux/arm64
3938
- linux/amd64
4039

build/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,15 @@ RUN go mod verify
2929
RUN --mount=type=cache,target="/root/.cache/go-build" \
3030
go build -o ChargePi -v -tags="linux" .
3131

32-
FROM --platform=$BUILDPLATFORM node:24 AS build-ui
32+
FROM node:24 AS build-ui
3333

3434
WORKDIR /ui
3535

3636
RUN corepack enable pnpm
3737
RUN corepack install -g [email protected]
3838
COPY ./ui/pnpm-lock.yaml ./
39-
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm fetch --frozen-lockfile
4039
COPY ./ui/package*.json ./
41-
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile --prod
40+
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install --frozen-lockfile
4241

4342
COPY ./ui .
4443
RUN pnpm build

ui/.eslintrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module.exports = {
33
env: { browser: true, es2020: true },
44
extends: [
55
'eslint:recommended',
6-
'@typescript-eslint/recommended',
76
'plugin:react-hooks/recommended',
87
],
98
ignorePatterns: ['dist', '.eslintrc.cjs'],

ui/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@ A modern, sleek React TypeScript web interface for the ChargePi charging point f
2424
### Prerequisites
2525

2626
- Node.js 16+
27-
- npm or yarn
27+
- pnpm
2828

2929
### Installation
3030

3131
```bash
3232
cd ui
33-
npm install
33+
pnpm install
3434
```
3535

3636
### Development Server
3737

3838
```bash
39-
npm start
39+
pnpm start
4040
```
4141

4242
The application will be available at `http://localhost:3000`
4343

4444
### Building for Production
4545

4646
```bash
47-
npm run build
47+
pnpm build
4848
```
4949

5050
The built files will be in the `build/` directory, which is served by the Go HTTP server.

ui/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
4343
},
4444
"devDependencies": {
45+
"@eslint/js": "^9.32.0",
4546
"@types/react": "^18.3.23",
4647
"@types/react-dom": "^18.3.7",
4748
"@types/react-grid-layout": "^1.3.5",
@@ -55,6 +56,7 @@
5556
"postcss": "^8.5.6",
5657
"tailwindcss": "^3.4.17",
5758
"typescript": "^5.8.3",
59+
"typescript-eslint": "^8.38.0",
5860
"vite": "^5.4.19"
5961
}
6062
}

0 commit comments

Comments
 (0)