Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

salief/config ci #492

Merged
merged 9 commits into from
Feb 18, 2024
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
30 changes: 30 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Integrate

on:
push:
branches: [ main, "releases/v*" ]
pull_request:
workflow_dispatch:

jobs:
coding-standards:
runs-on: ubuntu-latest
strategy:
matrix:
project: ['apps/site']
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
# This allows the setup action to resolve the biome version to install
# from the package.json file in the project's directory. Falls back to
# the latest stable version if no version is specified.
working-dir: ${{ matrix.project }}

- name: Run Biome
# This runs the biome command in the project's directory.
working-directory: ${{ matrix.project }}
run: biome ci .
20 changes: 19 additions & 1 deletion apps/site/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,25 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true
"recommended": true,
"style": {
"noUselessElse": "off"
},
"suspicious": {
"noRedeclare": "off",
"noArrayIndexKey": "off",
"noImplicitAnyLet": "off"
},
"complexity": {
"useOptionalChain": "off",
"noExtraBooleanCast": "off"
},
"correctness": {
"useExhaustiveDependencies": "off"
},
"a11y": {
"noSvgWithoutTitle": "off"
}
}
},
"vcs": {
Expand Down
4 changes: 2 additions & 2 deletions apps/site/components/client/ItemDropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export function ItemDropzone({ channel }: { channel: Channel }) {
isVideo({ mimeType: contentType }) || isAudio({ mimeType: contentType })
? 2
: isPdf({ mimeType: contentType }) || isGLB(file) || isText(file)
? 1
: 0
? 1
: 0

const animationUri =
contentTypeKey === 2 || contentTypeKey === 1 ? cid : ''
Expand Down
1 change: 0 additions & 1 deletion apps/site/design-system/components/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react'

import { cn } from '../utils'

// biome-ignore lint:
export interface TextareaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}

Expand Down
34 changes: 9 additions & 25 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
"organizeImports": {
"enabled": false
},
"files": {
"ignore": ["cache", "coverage"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80,
"ignore": [
"**/.turbo",
"**/node_modules",
"cache",
"coverage",
".gitignore",
"LICENSE.md",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
Expand All @@ -25,28 +23,9 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noRedeclare": "off",
"noArrayIndexKey": "off"
},
"complexity": {
"useOptionalChain": "off",
"noExtraBooleanCast": "off"
},
"correctness": {
"useExhaustiveDependencies": "off"
},
"a11y": {
"noSvgWithoutTitle": "off"
}
"recommended": true
},
"ignore": [
"**/.turbo",
"**/node_modules",
"cache",
"coverage",
".gitignore",
"LICENSE.md",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
Expand All @@ -60,5 +39,10 @@
"trailingComma": "all",
"semicolons": "asNeeded"
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"dev:site": "pnpm dev --filter=site"
},
"devDependencies": {
"@biomejs/biome": "^1.3.1",
"@biomejs/biome": "^1.5.3",
"turbo": "^1.10.16"
}
},
"packageManager": "[email protected]"
}
69 changes: 44 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.