Skip to content

Commit 8cc2cbb

Browse files
authored
test: switch to using biome (#66)
* chore: remove root prettier and eslint configs Signed-off-by: Tierney Cyren <[email protected]> * chore: switch to biome in package.json Signed-off-by: Tierney Cyren <[email protected]> * chore: update package-lock.json Signed-off-by: Tierney Cyren <[email protected]> * chore: add biome.json config Signed-off-by: Tierney Cyren <[email protected]> * chore: lint package.json Signed-off-by: Tierney Cyren <[email protected]> * ci: add biome format and lint commands Signed-off-by: Tierney Cyren <[email protected]> * chore: remove VS Code settings file Signed-off-by: Tierney Cyren <[email protected]> * fix: lint and format source code with biome Signed-off-by: Tierney Cyren <[email protected]> * ci: add GitHub Action for linting Signed-off-by: Tierney Cyren <[email protected]> * ci: update biome:format and add biome:format:write Signed-off-by: Tierney Cyren <[email protected]> * ci: add formatter GitHub Action Signed-off-by: Tierney Cyren <[email protected]> * chore: update linter job name in linter GitHub Action Signed-off-by: Tierney Cyren <[email protected]> --------- Signed-off-by: Tierney Cyren <[email protected]>
1 parent 136c303 commit 8cc2cbb

File tree

22 files changed

+7034
-6287
lines changed

22 files changed

+7034
-6287
lines changed

.eslintrc

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

.github/workflows/format.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Test Suite: Linter"
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
formatter:
12+
if: github.repository == 'twilio-labs/plugin-token'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout the repository
16+
uses: actions/checkout@v4
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: current
21+
- name: Run npm install
22+
run: npm install
23+
- name: Run npm run biome:format
24+
run: npm run biome:format

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Test Suite: Linter"
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
linter:
12+
if: github.repository == 'twilio-labs/plugin-token'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout the repository
16+
uses: actions/checkout@v4
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: current
21+
- name: Run npm install
22+
run: npm install
23+
- name: Run npm run biome:lint
24+
run: npm run biome:lint

.prettierrc

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

.vscode/settings.json

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

biome.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"javascript": {
7+
"formatter": {
8+
"quoteStyle": "single"
9+
}
10+
},
11+
"linter": {
12+
"enabled": true,
13+
"rules": {
14+
"recommended": true
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)