Skip to content

Commit

Permalink
Lintint
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinejaussoin committed Oct 17, 2024
1 parent a83a632 commit 8037011
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Tests & Linting'
name: "Tests & Linting"

on:
push:
Expand All @@ -19,7 +19,7 @@ jobs:
node-version: 20
- run: yarn
- run: yarn ci-test
- run: yarn lint
- run: yarn ci-lint
- run: yarn build
test-backend:
runs-on: ubuntu-latest
Expand All @@ -33,7 +33,7 @@ jobs:
node-version: 20
- run: yarn
- run: yarn ci-test
- run: yarn lint
- run: yarn ci-lint
- run: yarn build
test-marketing:
runs-on: ubuntu-latest
Expand All @@ -46,7 +46,7 @@ jobs:
with:
node-version: 20
- run: yarn
- run: yarn lint
- run: yarn ci-lint
- run: yarn build
test-docs:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion backend/.eslintignore

This file was deleted.

3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"revert": "typeorm-ts-node-esm -d src/db/index.ts migration:revert",
"lint": "biome lint",
"test": "yarn jest",
"ci-lint": "biome ci",
"ci-test": "CI=true yarn test",
"fix": "biome lint --write",
"fix": "biome check --write",
"backend-production": "yarn migrate-production && cd ./dist/src && node --import ../instrument.mjs index.js",
"migrate-production": "typeorm -d dist/src/db/index.js migration:run",
"copy-templates": "copyfiles -u 0 src/**/*.html dist/"
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"build": "NODE_ENV=production tsc && vite build",
"lint": "biome lint",
"test": "vitest",
"ci-lint": "biome ci",
"ci-test": "CI=true yarn test",
"analyze": "source-map-explorer build/static/js/*",
"watch": "tsc --watch --noEmit"
Expand Down
3 changes: 2 additions & 1 deletion marketing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev -p 3001",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"ci-lint": "biome ci"
},
"dependencies": {
"@biomejs/biome": "1.9.4",
Expand Down
2 changes: 1 addition & 1 deletion marketing/src/lib/getBlog.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from 'fs';
import fs from 'node:fs';
import { basename, join } from 'node:path';
import matter from 'gray-matter';
import { groupBy, sortBy, values } from 'lodash-es';
Expand Down
2 changes: 1 addition & 1 deletion marketing/src/lib/getLegal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from 'fs';
import fs from 'node:fs';
import { join } from 'node:path';
import matter from 'gray-matter';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An agile retrospective board - Powering www.retrospected.com",
"private": true,
"scripts": {
"lint": "cd frontend && yarn lint && cd ../backend && yarn lint",
"lint": "yarn biome ci",
"clean": "del ./{frontend,backend,common,maintenance}/yarn.lock && del ./yarn.lock && del ./{frontend,backend,common,maintenance}/node_modules && del ./node_modules",
"frontend": "cd frontend && yarn start && cd ..",
"backend": "cd backend && yarn start && cd ..",
Expand Down

0 comments on commit 8037011

Please sign in to comment.