Skip to content

Commit

Permalink
Merge pull request #147 from jiftechnify/migrate-to-pnpm-biome
Browse files Browse the repository at this point in the history
Migrate to pnpm biome
  • Loading branch information
jiftechnify authored Mar 28, 2024
2 parents 0ab0388 + d1e0791 commit d6ea7d7
Show file tree
Hide file tree
Showing 20 changed files with 4,504 additions and 4,300 deletions.
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

0 comments on commit d6ea7d7

Please sign in to comment.