Skip to content

Commit

Permalink
Replace Prettier and Eslint with Biome (#647)
Browse files Browse the repository at this point in the history
* Replace Prettier and Eslint with Biome

* Simplify biome.json

* Check formatting in CI
  • Loading branch information
Murderlon authored Sep 3, 2024
1 parent 1c853b0 commit 227ae81
Show file tree
Hide file tree
Showing 59 changed files with 543 additions and 1,359 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.js

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request_target:
types: [opened, synchronize, reopened]
paths-ignore:
- '**.md'
- "**.md"
pull_request:
types: [opened, synchronize, reopened]
paths:
Expand Down Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Build
run: npm run build

- name: Check formatting
run: npm run format:check

- name: Run linters
run: npm run lint

Expand Down
11 changes: 0 additions & 11 deletions .prettierrc.json

This file was deleted.

32 changes: 32 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noParameterAssign": "off"
}
},
"ignore": ["./demo", "**/dist/**"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 90
},
"javascript": {
"formatter": {
"trailingCommas": "es5",
"semicolons": "asNeeded",
"bracketSpacing": false,
"quoteStyle": "single"
}
}
}
2 changes: 0 additions & 2 deletions demo/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const path = require('path')
const fs = require('fs')
const assert = require('assert')
Expand Down
Loading

0 comments on commit 227ae81

Please sign in to comment.