Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to pnpm biome #147

Merged
merged 4 commits into from
Mar 28, 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
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,29 @@ jobs:
with:
node-version: "20.x"

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Get pnpm store
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Lint
run: yarn lint
run: pnpm lint

typos:
name: Detect typos
Expand Down
17 changes: 17 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.3/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 120
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
}
}
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"build": "run-s type-check gen-build-id vite-build",
"preview": "vite preview",
"lint": "run-p type-check lint:*",
"lint:eslint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:prettier": "prettier --check --log-level warn src/**/*.{ts,tsx}",
"lint:format": "biome format ./src",
"lint:js": "biome lint ./src",
"fix": "run-s fix:*",
"fix:eslint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
"fix:prettier": "prettier --check --log-level warn src/**/*.{ts,tsx} --write",
"fix:format": "biome format --write ./src",
"fix:js": "biome lint --apply ./src",
"i18n-extract": "i18next src/**/*.tsx --config i18next-parser.config.js"
},
"dependencies": {
Expand Down Expand Up @@ -51,17 +51,14 @@
"virtua": "^0.28.0"
},
"devDependencies": {
"@biomejs/biome": "^1.6.3",
"@pandacss/dev": "^0.35.0",
"@shadow-panda/preset": "^0.7.1",
"@types/node": "^20.11.30",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.2.1",
"date-fns": "^3.2.0",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"i18next-parser": "^8.12.0",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.5",
Expand Down
Loading
Loading