Skip to content

Commit

Permalink
feat: switch to biome to ensure consistency & apply various fixes (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos authored May 21, 2024
1 parent 33b5cb5 commit 15900b9
Show file tree
Hide file tree
Showing 42 changed files with 3,800 additions and 5,785 deletions.
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "always",
"quickfix.biome": "always",
"source.organizeImports": "never",
"source.fixAll": "always"
},
"editor.defaultFormatter": "biomejs.biome"
}
41 changes: 41 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off"
},
"a11y": {
"useKeyWithClickEvents": "off",
"useButtonType": "off"
},
"security": {
"noDangerouslySetInnerHtml": "off"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 150
},
"javascript": {
"formatter": {
"trailingComma": "none",
"arrowParentheses": "always"
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
}
}
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"build:local": "spicetify-creator --out=dist --minify",
"build:prod": "pnpm build:local && pnpm copy:docs",
"copy:docs": "copyfiles README.md dist/",
"lint": "eslint --fix src",
"lint:ci": "eslint src",
"lint": "biome check --apply *",
"lint:ci": "biome check *",
"type-check": "tsc --noEmit",
"watch": "spicetify-creator --watch",
"prepare": "husky install",
Expand All @@ -30,17 +30,13 @@
"@types/react": "18.2.0",
"@types/react-dom": "18.2.0",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"copyfiles": "^2.4.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"husky": "^9.0.11",
"spicetify-creator": "^1.0.17",
"typescript": "^5.4.3",
"typescript-eslint": "^7.8.0"
"typescript": "^5.4.3"
},
"dependencies": {
"@biomejs/biome": "^1.7.3",
"chroma-js": "^2.4.2",
"i18next": "^23.11.3",
"i18next-browser-languagedetector": "^7.2.0",
Expand Down
Loading

0 comments on commit 15900b9

Please sign in to comment.