Skip to content

Commit 183fcc4

Browse files
committed
refactor: use biome and just
build: install @sablier/devkit build: remove unused deps build: upgrade to eslint v9 ci: rename worklows ci: update workflows for refactor
1 parent 55cadfb commit 183fcc4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+637
-754
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ indent_size = 2
1111
indent_style = space
1212
insert_final_newline = true
1313
trim_trailing_whitespace = true
14+
15+
[justfile]
16+
indent_size = 4

.eslintignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.eslintrc.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/cd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Deploy to Vercel"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ["main"]
7+
8+
jobs:
9+
cd:
10+
environment: "production"
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- name: "Check out the repo"
14+
uses: "actions/checkout@v4"
15+
16+
- name: "Set up devkit"
17+
uses: "sablier-labs/devkit/actions/setup@main"
18+
with:
19+
package-manager: "bun"
20+
21+
- name: "Run the code checks"
22+
run: "just full-check"
23+
24+
- name: "Deploy to Vercel"
25+
env:
26+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
27+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
28+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
29+
run: "just deploy"
30+
31+
- name: "Add summary"
32+
run: |
33+
echo "## Continuous Deployment results" >> $GITHUB_STEP_SUMMARY
34+
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
File renamed without changes.

.github/workflows/deploy.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.lintstagedrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @type {import("lint-staged").Configuration}
3+
*/
4+
module.exports = {
5+
"*.{css,js,json,jsonc,jsx,ts,tsx}": "bun biome check --write",
6+
"*.{js,jsx,ts,tsx}": "bun biome lint --write --only correctness/noUnusedImports",
7+
"*.{md,mdx,yaml,yml}": "bun prettier --cache --write",
8+
"*.{md,mdx}": "bun eslint --cache --fix",
9+
};

.lintstagedrc.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
build
44
node_modules
55
repos
6-
src/autogen/**/*.mdx
7-
static
86

97
# files
10-
package-lock.json
8+
src/autogen/**/*.mdx

.prettierrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const baseConfig = require("@sablier/devkit/prettier");
2+
3+
/**
4+
* @see https://prettier.io/docs/configuration
5+
* @type {import("prettier").Config}
6+
*/
7+
const config = baseConfig;
8+
9+
module.exports = config;

0 commit comments

Comments
 (0)