Skip to content

Commit

Permalink
feat: Change lint & format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zastinian committed May 20, 2024
1 parent 8828263 commit ddb8893
Show file tree
Hide file tree
Showing 39 changed files with 244 additions and 504 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/pr-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,5 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Format Check
run: pnpm run format:check

- name: Lint Check
run: pnpm run lint
- name: Lint/Format Check
run: pnpm run check
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pnpm run format:check
pnpm run lint
pnpm run check
3 changes: 0 additions & 3 deletions .lintstagedrc

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierignore

This file was deleted.

28 changes: 0 additions & 28 deletions .prettierrc.mjs

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
"biomejs.biome"
]
}
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"eslint.validate": ["javascript", "typescript"],
"javascript.format.insertSpaceBeforeFunctionParenthesis": false,
"typescript.format.insertSpaceBeforeFunctionParenthesis": false,
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
}
}
46 changes: 46 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100,
"attributePosition": "auto",
"ignore": [
"**/pnpm-lock.yaml",
"**/package-lock.json",
"**/bun.lockb",
"**/yarn.lock",
"**/node_modules/",
"**/dist/",
"**/tmp/",
".vscode/extensions.json"
]
},
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": { "recommended": false, "style": { "useBlockStatements": "off" } }
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingComma": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "double",
"attributePosition": "auto"
}
},
"overrides": [
{
"include": ["*.json", "*.md", "*.toml", "*.yml"],
"formatter": { "indentStyle": "space" }
}
]
}
Loading

0 comments on commit ddb8893

Please sign in to comment.