Skip to content

Commit

Permalink
feat(deps): replace prettier+eslint with biome (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos authored Apr 8, 2024
1 parent 07170eb commit 57c221a
Show file tree
Hide file tree
Showing 11 changed files with 272 additions and 1,614 deletions.
32 changes: 0 additions & 32 deletions .eslintrc.json

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

33 changes: 33 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "double"
}
},
"json": {
"parser": {
"allowComments": true
}
}
}
7 changes: 6 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [{ name: 'keywords', content: 'spicetify, spotify, customization, documentation, blog' }],
metadata: [
{
name: 'keywords',
content: 'spicetify, spotify, customization, documentation, blog',
},
],
image: 'images/spicetify-full.png',
colorMode: {
defaultMode: 'light',
Expand Down
16 changes: 3 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,25 @@
"swiper": "^11.1.0"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"production": [">0.5%", "not dead", "not op_mini all"],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@docusaurus/module-type-aliases": "^3.2.1",
"@docusaurus/theme-classic": "^3.2.1",
"@docusaurus/tsconfig": "^3.2.1",
"@types/node": "^20.12.5",
"@types/react": "^18.2.74",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"typescript": "^5.4.4"
},
"lint-staged": {
"*.js": "eslint --cache --fix **/*.tsx"
"*.js|ts|jsx|tsx": "biome check --apply"
}
}
Loading

0 comments on commit 57c221a

Please sign in to comment.