Skip to content

Commit

Permalink
ci(website/infra): lint-staged issue in website (#7224)
Browse files Browse the repository at this point in the history
* chore: try

* chore: run biome lint
  • Loading branch information
SoonIter committed Jul 19, 2024
1 parent 88c6d6a commit a5898ea
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ jobs:
run: |
cd website
pnpm install
npx @biomejs/biome check --diagnostic-level=warn
pnpm run check:ci
rust_changes:
Expand Down
10 changes: 5 additions & 5 deletions website/components/CommunityCompatibleTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import S from './PluginSupportStatusTable.module.scss';
import * as i18n from './i18n';

export enum CompatibleStatus {
NotCompatible,
PartiallyCompatible,
Alternative,
Compatible,
Included,
NotCompatible = 0,
PartiallyCompatible = 1,
Alternative = 2,
Compatible = 3,
Included = 4,
}

const SUPPORT_STATUS_LOCALIZED = {
Expand Down
6 changes: 3 additions & 3 deletions website/components/PluginSupportStatusTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { useLang } from 'rspress/runtime';
import S from './PluginSupportStatusTable.module.scss';

enum SupportStatus {
NotSupported,
PartiallySupported,
FullySupported,
NotSupported = 0,
PartiallySupported = 1,
FullySupported = 2,
}

const SUPPORT_STATUS_LOCALIZED = {
Expand Down
7 changes: 5 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"build": "rspress build",
"preview": "rspress preview",
"sort-projects-words": "node ./sortProjectWords.js",
"check:lint": "biome check --diagnostic-level=warn --write",
"check:lint-ci": "biome check --diagnostic-level=warn",
"check:format": "prettier . --write",
"check:format-ci": "prettier . --check",
"check:spell": "npx cspell",
"check:case": "npx case-police docs/**/*.{md,mdx}",
"check": "pnpm run check:format && pnpm run check:spell",
"check:ci": "pnpm run check:format-ci && pnpm run check:spell"
"check": "pnpm run check:lint && pnpm run check:format && pnpm run check:spell",
"check:ci": "pnpm run check:lint-ci && pnpm run check:format-ci && pnpm run check:spell"
},
"license": "MIT",
"packageManager": "pnpm@9.3.0",
Expand All @@ -28,6 +30,7 @@
"tailwindcss": "^3.2.7"
},
"devDependencies": {
"@biomejs/biome": "1.8.0",
"@rspress/plugin-rss": "^1.26.1",
"@rspress/shared": "^1.26.1",
"@types/node": "^18.11.18",
Expand Down
99 changes: 99 additions & 0 deletions website/pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions website/theme/components/Benchmark/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export function Benchmark() {
href="misc/benchmark.html"
target="_blank"
className={`${styles.bottomLink} hover:text-brand transition-colors duration-300 font-medium p-2`}
rel="noreferrer"
>
👉 {t('benchmarkDetail')}
</a>
Expand Down

2 comments on commit a5898ea

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ran ecosystem CI: Open

suite result
modernjs ✅ success
_selftest ✅ success
nx ✅ success
rspress ✅ success
rsbuild ✅ success
examples ❌ failure

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2024-07-19 b3bac1b) Current Change
10000_development-mode + exec 2.26 s ± 16 ms 2.29 s ± 55 ms +1.40 %
10000_development-mode_hmr + exec 699 ms ± 8.9 ms 699 ms ± 3.7 ms -0.10 %
10000_production-mode + exec 2.82 s ± 30 ms 2.89 s ± 28 ms +2.48 %
arco-pro_development-mode + exec 1.92 s ± 80 ms 1.9 s ± 79 ms -0.83 %
arco-pro_development-mode_hmr + exec 434 ms ± 2.6 ms 434 ms ± 3.6 ms +0.18 %
arco-pro_production-mode + exec 3.47 s ± 76 ms 3.48 s ± 36 ms +0.28 %
threejs_development-mode_10x + exec 1.76 s ± 14 ms 1.78 s ± 14 ms +1.05 %
threejs_development-mode_10x_hmr + exec 865 ms ± 4.7 ms 881 ms ± 6.2 ms +1.86 %
threejs_production-mode_10x + exec 5.73 s ± 30 ms 5.79 s ± 41 ms +1.04 %

Please sign in to comment.