Skip to content

Commit 15900b9

Browse files
authored
feat: switch to biome to ensure consistency & apply various fixes (#759)
1 parent 33b5cb5 commit 15900b9

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

+3800
-5785
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",

0 commit comments

Comments
 (0)