Skip to content

Commit d28bfcb

Browse files
committed
feat: switch to biome to ensure consistency
1 parent 33b5cb5 commit d28bfcb

Some content is hidden

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

42 files changed

+3816
-3635
lines changed

.vscode/settings.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.organizeImports.biome": "always",
4+
"quickfix.biome": "always",
5+
"source.organizeImports": "never",
6+
"source.fixAll": "always"
7+
},
8+
"editor.defaultFormatter": "biomejs.biome"
9+
}

biome.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": true,
10+
"suspicious": {
11+
"noExplicitAny": "off"
12+
},
13+
"a11y": {
14+
"useKeyWithClickEvents": "off",
15+
"useButtonType": "off"
16+
},
17+
"security": {
18+
"noDangerouslySetInnerHtml": "off"
19+
}
20+
}
21+
},
22+
"formatter": {
23+
"enabled": true,
24+
"formatWithErrors": true,
25+
"indentStyle": "space",
26+
"indentWidth": 2,
27+
"lineWidth": 150
28+
},
29+
"javascript": {
30+
"formatter": {
31+
"trailingComma": "none",
32+
"arrowParentheses": "always"
33+
}
34+
},
35+
"vcs": {
36+
"enabled": true,
37+
"clientKind": "git",
38+
"useIgnoreFile": true,
39+
"defaultBranch": "main"
40+
}
41+
}

package.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"build:local": "spicetify-creator --out=dist --minify",
1313
"build:prod": "pnpm build:local && pnpm copy:docs",
1414
"copy:docs": "copyfiles README.md dist/",
15-
"lint": "eslint --fix src",
16-
"lint:ci": "eslint src",
15+
"lint": "biome check --apply *",
16+
"lint:ci": "biome check *",
1717
"type-check": "tsc --noEmit",
1818
"watch": "spicetify-creator --watch",
1919
"prepare": "husky install",
@@ -30,17 +30,13 @@
3030
"@types/react": "18.2.0",
3131
"@types/react-dom": "18.2.0",
3232
"@types/semver": "^7.5.8",
33-
"@typescript-eslint/eslint-plugin": "^7.8.0",
34-
"@typescript-eslint/parser": "^7.8.0",
3533
"copyfiles": "^2.4.1",
36-
"eslint": "^8.57.0",
37-
"eslint-plugin-react": "^7.34.1",
3834
"husky": "^9.0.11",
3935
"spicetify-creator": "^1.0.17",
40-
"typescript": "^5.4.3",
41-
"typescript-eslint": "^7.8.0"
36+
"typescript": "^5.4.3"
4237
},
4338
"dependencies": {
39+
"@biomejs/biome": "^1.7.3",
4440
"chroma-js": "^2.4.2",
4541
"i18next": "^23.11.3",
4642
"i18next-browser-languagedetector": "^7.2.0",

pnpm-lock.yaml

+106-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/blacklist.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"repos": ["https://github.com/FoxRefire/spiceDL"]
2+
"repos": ["https://github.com/FoxRefire/spiceDL"]
33
}

resources/snippets.json

+24-24
Original file line numberDiff line numberDiff line change
@@ -342,39 +342,39 @@
342342
"preview": "resources/assets/snippets/pokemon-adventure.png"
343343
},
344344
{
345-
"title": "Hide Friend Activity Button 2024",
346-
"description": "Hides the Friend Activity button",
347-
"code": "[aria-label='Friend Activity'] {display:none;}",
348-
"preview": "resources/assets/snippets/Hide-Friend-Activity-Button.png"
345+
"title": "Hide Friend Activity Button 2024",
346+
"description": "Hides the Friend Activity button",
347+
"code": "[aria-label='Friend Activity'] {display:none;}",
348+
"preview": "resources/assets/snippets/Hide-Friend-Activity-Button.png"
349349
},
350350
{
351-
"title": "Hide What's New Button",
352-
"description": "Hides the What's New button",
353-
"code": "[aria-label=\"What's New\"] {display:none;}",
354-
"preview": "resources/assets/snippets/Hide-Whats-New-Button.png"
351+
"title": "Hide What's New Button",
352+
"description": "Hides the What's New button",
353+
"code": "[aria-label=\"What's New\"] {display:none;}",
354+
"preview": "resources/assets/snippets/Hide-Whats-New-Button.png"
355355
},
356356
{
357-
"title": "Hide Audiobooks Button",
358-
"description": "Hides the Audiobook button on the home page",
359-
"code": "button[aria-label='Audiobooks'] {display:none;}",
360-
"preview": "resources/assets/snippets/Hide-Audiobooks-Button.png"
357+
"title": "Hide Audiobooks Button",
358+
"description": "Hides the Audiobook button on the home page",
359+
"code": "button[aria-label='Audiobooks'] {display:none;}",
360+
"preview": "resources/assets/snippets/Hide-Audiobooks-Button.png"
361361
},
362362
{
363-
"title": "Hide Podcast Button",
364-
"description": "Hides the Podcast button on the home page",
365-
"code": "button[aria-label='Podcasts'] {display:none;}",
366-
"preview": "resources/assets/snippets/Hide-Podcast-Button.png"
363+
"title": "Hide Podcast Button",
364+
"description": "Hides the Podcast button on the home page",
365+
"code": "button[aria-label='Podcasts'] {display:none;}",
366+
"preview": "resources/assets/snippets/Hide-Podcast-Button.png"
367367
},
368368
{
369-
"title": "Hide Recently Played Sections",
370-
"description": "Hides the Recently Played sections on the home page",
371-
"code": ".view-homeShortcutsGrid-shortcuts, section[aria-label='Recently played'] {display:none;}",
372-
"preview": "resources/assets/snippets/Hide-Recently-Played.png"
369+
"title": "Hide Recently Played Sections",
370+
"description": "Hides the Recently Played sections on the home page",
371+
"code": ".view-homeShortcutsGrid-shortcuts, section[aria-label='Recently played'] {display:none;}",
372+
"preview": "resources/assets/snippets/Hide-Recently-Played.png"
373373
},
374374
{
375-
"title": "More Visible Unplayable Tracks",
376-
"description": "Changes the background of unplayable tracks to make it easier to spot them in large playlists.",
377-
"code": ".main-trackList-disabled{background:#f004}.main-trackList-disabled:focus-within,.main-trackList-disabled:hover{background:#f005}.main-trackList-disabled.main-trackList-selected,.main-trackList-disabled.main-trackList-selected:hover{background:#f006}",
378-
"preview": "resources/assets/snippets/More-Visible-Unplayable-Tracks"
375+
"title": "More Visible Unplayable Tracks",
376+
"description": "Changes the background of unplayable tracks to make it easier to spot them in large playlists.",
377+
"code": ".main-trackList-disabled{background:#f004}.main-trackList-disabled:focus-within,.main-trackList-disabled:hover{background:#f005}.main-trackList-disabled.main-trackList-selected,.main-trackList-disabled.main-trackList-selected:hover{background:#f006}",
378+
"preview": "resources/assets/snippets/More-Visible-Unplayable-Tracks"
379379
}
380380
]

0 commit comments

Comments
 (0)