Skip to content

Commit 536be41

Browse files
authored
Merge pull request #377 from jasonlong/switch-to-biome
Replace XO with Biome for JavaScript linting
2 parents ed31e2b + 87e5be7 commit 536be41

File tree

7 files changed

+8908
-15060
lines changed

7 files changed

+8908
-15060
lines changed

biome.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
3+
"linter": {
4+
"enabled": true,
5+
"rules": {
6+
"recommended": true
7+
}
8+
},
9+
"formatter": {
10+
"enabled": true,
11+
"indentStyle": "space",
12+
"indentWidth": 2
13+
},
14+
"javascript": {
15+
"formatter": {
16+
"semicolons": "asNeeded",
17+
"quoteStyle": "single",
18+
"trailingCommas": "none"
19+
}
20+
},
21+
"files": {
22+
"includes": ["*.js", "scripts/**"]
23+
},
24+
"overrides": [
25+
{
26+
"includes": ["renderer.js"],
27+
"linter": { "enabled": false },
28+
"formatter": { "enabled": false }
29+
}
30+
]
31+
}

main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {Menu, ipcMain} from 'electron'
2-
import {platform} from 'node:os'
1+
import { platform } from 'node:os'
32
import path from 'node:path'
4-
import {fileURLToPath} from 'node:url'
5-
import {menubar} from 'menubar'
3+
import { fileURLToPath } from 'node:url'
4+
import { ipcMain, Menu } from 'electron'
5+
import { menubar } from 'menubar'
66

77
const __dirname = path.dirname(fileURLToPath(import.meta.url))
88
const currentPlatform = platform()

0 commit comments

Comments
 (0)