-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to use biome over ESLint and prettier (#1304)
* refactor: use biome formatting and check fix * refactor: remove eslint disabled rules * refactor: apply unsafe rules * refactor: refactor to comply with biome rules * fix: make biome default formatter * refactor: last biome fixes * test: adjust assertion * test: adjust more tests to not skip them * refactor: use codecov action * fix: remove matrix * chore: fix lockfile * Create famous-hotels-accept.md
- Loading branch information
Showing
54 changed files
with
492 additions
and
1,426 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@promster/apollo": patch | ||
"@promster/express": patch | ||
"@promster/fastify": patch | ||
"@promster/hapi": patch | ||
--- | ||
|
||
Refactor to use biome over ESLint and prettier |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[tools] | ||
node = "22.8" | ||
node = "22" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
{ | ||
"workbench.colorCustomizations": { | ||
"tab.unfocusedActiveBorder": "#fff0" | ||
}, | ||
"gitdoc.enabled": false | ||
} | ||
"workbench.colorCustomizations": { | ||
"tab.unfocusedActiveBorder": "#fff0" | ||
}, | ||
"gitdoc.enabled": false, | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.codeActionsOnSave": { | ||
"quickfix.biome": "explicit" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"vcs": { | ||
"clientKind": "git", | ||
"enabled": true, | ||
"useIgnoreFile": true | ||
}, | ||
"files": { | ||
"ignoreUnknown": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 80, | ||
"ignore": [ | ||
"**/package.json", | ||
"**/dist/**", | ||
"**/.changeset", | ||
"**/CHANGELOG.md", | ||
"**/pnpm-lock.yaml", | ||
"**/pnpm-workspace.yaml" | ||
] | ||
}, | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"performance": { | ||
"noAccumulatingSpread": "off" | ||
}, | ||
"complexity": { | ||
"noVoid": "error" | ||
}, | ||
"correctness": { | ||
"noUndeclaredVariables": "error", | ||
"noUnreachableSuper": "error", | ||
"noUnusedVariables": "error", | ||
"useArrayLiterals": "error", | ||
"useExhaustiveDependencies": "warn" | ||
}, | ||
"style": { | ||
"noNegationElse": "error", | ||
"noRestrictedGlobals": { | ||
"level": "error", | ||
"options": { "deniedGlobals": ["event", "atob", "btoa"] } | ||
}, | ||
"useBlockStatements": "error", | ||
"useCollapsedElseIf": "error", | ||
"useConsistentArrayType": { | ||
"level": "error", | ||
"options": { "syntax": "shorthand" } | ||
}, | ||
"useForOf": "error", | ||
"useFragmentSyntax": "error", | ||
"useShorthandAssign": "error" | ||
}, | ||
"suspicious": { | ||
"noEmptyBlockStatements": "error", | ||
"noSkippedTests": "warn", | ||
"noExplicitAny": "off" | ||
} | ||
}, | ||
"ignore": ["**/node_modules/", "**/coverage/", "**/dist/"] | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingCommas": "es5", | ||
"semicolons": "always", | ||
"arrowParentheses": "always", | ||
"bracketSpacing": true, | ||
"quoteStyle": "single" | ||
}, | ||
"globals": [ | ||
"it", | ||
"describe", | ||
"expect", | ||
"jest", | ||
"before", | ||
"beforeAll", | ||
"beforeEach", | ||
"after", | ||
"afterAll", | ||
"afterEach" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-disable */ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
parserPreset: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = { | ||
'packages/**/*.{ts,js}': ['npm run fix:eslint', 'npm run format:js'], | ||
'*.md': ['npm run format:md'], | ||
'*': [ | ||
'biome check', // Format, sort imports, lint, and apply safe fixes | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.