Skip to content

Commit

Permalink
Use biome as the formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtrfszm committed Jan 6, 2024
1 parent 768bf44 commit 5a9beaa
Show file tree
Hide file tree
Showing 25 changed files with 111 additions and 152 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "solid", "prettier"],
"rules": {
"prettier/prettier": "error"
},
"plugins": ["@typescript-eslint", "solid"],
"ignorePatterns": ["node_modules/", "dist/"]
}
27 changes: 3 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,30 +1,9 @@

dist
.solid
.output
.vercel
.netlify
netlify

# Environment
.env
.env*.local

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
*.launch
.settings/

# Temp
gitignore
.vinxi
node_modules
.idea

# System Files
.DS_Store
Thumbs.db

.vinxi
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

19 changes: 0 additions & 19 deletions .prettierrc.json

This file was deleted.

32 changes: 32 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120,
"lineEnding": "lf"
},
"linter": {
"enabled": false
},
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"trailingComma": "es5",
"arrowParentheses": "always",
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"bracketSpacing": true,
"bracketSameLine": false,
"semicolons": "asNeeded",
"quoteProperties": "asNeeded"
}
}
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dev": "vinxi dev",
"build": "vinxi build",
"start": "node ./.output/server/index.mjs",
"format": "prettier . --write",
"format": "pnpm dlx @biomejs/biome format --write .",
"lint": "eslint --ext .tsx,.ts,.json,.js,.jsx ."
},
"type": "module",
Expand All @@ -16,10 +16,8 @@
"@typescript-eslint/parser": "^6.15.0",
"esbuild": "^0.14.54",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-solid": "^0.13.0",
"postcss": "^8.4.32",
"prettier": "3.0.3",
"sass": "^1.69.5",
"typescript": "^4.9.5",
"vite": "^4.5.1"
Expand Down
Loading

0 comments on commit 5a9beaa

Please sign in to comment.