-
Notifications
You must be signed in to change notification settings - Fork 708
Switch to the @biomejs/biome formatter
#1920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
scottanderson
wants to merge
91
commits into
main
Choose a base branch
from
biome
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
ff22793
Add auto-upgrade buildings feature with middle mouse click (#1597)
Kipstz 3af3b0b
Add comprehensive test for lang resource and flag existence (#1643)
Aotumuri 298759b
Add button for remove building (#1609)
Kipstz 215d231
Disable strict mode (#1713)
scottanderson 4b7bd3b
Add a new Mars (Revised) map (#1435)
djmrFunnyMan 2524a4f
Switch to @swc/jest to speed up tests Fixes #1679 (#1680)
TylerHanavan cbb504a
Add basic ICU message format support for translations (#1645)
Aotumuri f8c6a59
Merge v25 into main
scottanderson 71d9e6e
Add frontend-approver and backend-approver to CODEOWNERS file (#1723)
scottanderson 2b329d9
Bump the npm_and_yarn group across 1 directory with 2 updates (#1481)
dependabot[bot] 63cb51a
Added trackpad support for moving maps (#1717)
pierrebrtr b56e380
Enable the `sort-keys` eslint rule (#1746)
scottanderson d1b5c80
Cancel alliance requests if the recipient attacks (#1733)
DevelopingTom 2b0701c
refactor: extract websocket handler functions (#1751)
scottanderson 7e25f6b
Enable `@total-typescript/ts-reset` (#1761)
scottanderson be07333
strict mode: GameInfoSchema.parse (#1763)
scottanderson ffaabd9
Enable eslint warning for type assertions (#1762)
scottanderson f481af1
Pause replay or SP game when opening Settings modal (#1530)
VariableVince 0f713ab
Re-enable strict mode (#1749)
scottanderson ad0ad44
Remove CLA from the PR description (#1776)
scottanderson 0b35c13
Make the player info overlay collapsible (#1768)
TLS15 8a41919
Private lobby toggle donation (#1752)
ce49599
Enable various eslint rules (#1773)
scottanderson a9e5aa0
Enable eslint rule `@stylistic/ts/indent` (#1779)
scottanderson 087afc7
Enable more stylistic rules (#1792)
scottanderson af8bb9a
Enable eslint rule `quote-props` (#1795)
scottanderson b67b62c
Enable various eslint rules (#1796)
scottanderson 02e35c3
vote for winner (#1565)
evanpelle 385ef5c
Fix broken intent handling (#1801)
scottanderson 2ed0cef
eslint: Prefer `type.array()` over `z.array(type)` (#1810)
scottanderson 4ade5be
Update public lobby map frequencies (#1816)
Baguette8ot e303dc2
Ensure the radial menu is within the viewport (#1817)
woodydrn 69fcfe7
removed duplicate Papua New Guinea (#1823)
TheGiraffe3 ef51add
Enable the `@typescript-eslint/no-explicit-any` eslint rule (#1830)
scottanderson 356364d
Enable the `@typescript-eslint/no-unsafe-argument` eslint rule (#1831)
scottanderson 2dfd39f
Enable the `@typescript-eslint/no-unsafe-assignment` eslint rule (#1832)
scottanderson 5aacf5b
Enable the `@typescript-eslint/no-unsafe-member-access` eslint rule (…
scottanderson 294d9db
Enable the `@stylistic/eol-last` eslint rule (#1834)
scottanderson e9f29be
Display a dialog with join failure reason (#1756)
scottanderson 0befdcd
Enable the Enable `max-len` and `max-lines` eslint rules (#1842)
scottanderson 5bc8d22
fix: implement lazy loading for flag images and clean CSS (#1843)
abdallahbahrawi1 002d450
Add total units / buildings view to the teamstats component (#884)
Killersoren 62c08e2
Enable the `no-undef` eslint rule (#1848)
scottanderson 0a40bce
Enable the `sort-imports` eslint rule (#1849)
scottanderson 1da46cf
Enable the `@stylistic/ts/quotes` eslint rule (#1850)
scottanderson 45fcd9d
reduce train frequency (#1722)
evanpelle e6ff3c4
Reintroduce commit metadata in the final image (#1737)
aaa4xu 70b7464
fix alternate view perf regression (#1734)
evanpelle 0e0ec67
Have trains produce more gold (#1759)
evanpelle 3863f52
mls (v4.4) (#1753)
Aotumuri 56f748b
restrict problematic flags fixes #1690 (#1805)
evanpelle 22d47e0
Fix flag preview not updating after selecting a new flag (#1812)
Aotumuri 243b456
Use seedrandom to back PseudoRandom.ts (#1828)
evanpelle a0db091
bugfix: SAMs targeting not updating owner after capture (#1838)
evanpelle 116f019
allow names to go on top of radiation (#1840)
evanpelle 0f760f8
increase MIRV warhead distance, after improved pseudorandom (#1839)
evanpelle d6ef209
fix eslint failure (#1852)
scottanderson ebcebfd
Remove hard structure limit for nations (#1853)
scottanderson a646818
fix ally request svg aspect ratio (#1731)
fantom845 2db2907
Smarter nation structure placement (#1851)
scottanderson ec21a0f
Enable the `no-multiple-empty-lines` eslint rule (#1856)
scottanderson 6d0ae88
more nations on the World Map (#1770)
TheGiraffe3 ed090b8
Enable the `object-shorthand` eslint rule (#1857)
scottanderson 9163f0d
Enable the `@typescript-eslint/prefer-readonly` eslint rule (#1859)
scottanderson 42394d4
Revert "Enable the `no-multiple-empty-lines` eslint rule (#1856)"
scottanderson 7bb319f
Enable the `prefer-destructuring` eslint rule (#1858)
scottanderson c55c656
Allies no longer embargo each other (#1863)
ElMelchizedek 1b9ae47
Update discord invite link in README.md from the translator discord t…
PilkeySEK 14c14e5
added the ability to see players Flag inside the player panel with fu…
Boostry123 add81b9
Reloading the page during a game should rejoin with the same clientID…
woodydrn f5316cc
Enable the `@typescript-eslint/no-non-null-assertion` eslint rule (#1…
scottanderson 51519b0
Enable `strictPropertyInitialization` (#1909)
scottanderson e77e731
Biome formatter
scottanderson b107ff9
format
scottanderson 13b3505
Improve alliance UX, prevent hung alliance requests (#1868)
evanpelle 087159a
Update train color to be more like owner color (#1869)
evanpelle 783a68e
unset pattern on logout (#1873)
evanpelle 8965ad5
better pattern name (#1885)
evanpelle 86f8cc9
fix team color (#1888)
evanpelle eda49d1
fix emoji exploit: sending emoji to self causes game to crash (#1889)
evanpelle fb038f2
Create stations regardless of factory ownership (#1904)
DevelopingTom d752902
Remove Yenisei from public multiplayer games (#1874)
evanpelle de3e801
Fix eslint failure (#1921)
scottanderson cac3196
Fix trainwreck bug (#1925)
scottanderson eaefecb
Address PR comments
scottanderson 809d60f
format
scottanderson 7f474e1
Merge main into biome
scottanderson d9a1782
format
scottanderson f2164a4
fix
scottanderson 247adf6
quote-props: as-needed
scottanderson 9ccd9cd
Merge branch 'main' into biome
scottanderson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -70,4 +70,4 @@ jobs: | |
| node-version: "20" | ||
| cache: "npm" | ||
| - run: npm ci | ||
| - run: npx prettier --check . | ||
| - run: npx biome format . | ||
This file contains hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
| { | ||
| "jsc": { | ||
| "parser": { | ||
| "syntax": "typescript", | ||
| "tsx": true, | ||
| "decorators": true | ||
| }, | ||
| "transform": { | ||
| "decoratorMetadata": true | ||
| }, | ||
| "target": "es2022" | ||
| }, | ||
| "module": { | ||
| "type": "es6" | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,49 @@ | ||
| { | ||
| "$schema": "https://biomejs.dev/schemas/2.2.2/schema.json", | ||
| "assist": { | ||
| "actions": { | ||
| "source": { | ||
| "organizeImports": "on" | ||
| } | ||
| }, | ||
| "enabled": true | ||
| }, | ||
| "files": { | ||
| "ignoreUnknown": true | ||
| }, | ||
| "formatter": { | ||
| "enabled": true, | ||
| "indentStyle": "space", | ||
| "indentWidth": 2 | ||
| }, | ||
| "javascript": { | ||
| "formatter": { | ||
| "quoteStyle": "double" | ||
| } | ||
| }, | ||
| "linter": { | ||
| "enabled": false | ||
| }, | ||
| "overrides": [ | ||
| { | ||
| "assist": { | ||
| "actions": { | ||
| "source": { | ||
| "useSortedKeys": "on" | ||
| } | ||
| } | ||
| }, | ||
| "includes": [ | ||
| "eslint-plugin-local/**/*.{js,ts,jsx,tsx}", | ||
| "src/**/*.{js,ts,jsx,tsx}", | ||
| "**/*.test.{js,ts,jsx,tsx}", | ||
| "tests/**/*.{js,ts,jsx,tsx}" | ||
| ] | ||
| } | ||
| ], | ||
| "vcs": { | ||
| "clientKind": "git", | ||
| "enabled": true, | ||
| "useIgnoreFile": true | ||
| } | ||
| } | ||
This file contains hidden or 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,7 @@ | ||
| import noZArray from "./rules/no-z-array.js"; | ||
|
|
||
| export default { | ||
| rules: { | ||
| "no-z-array": noZArray, | ||
| }, | ||
| }; |
This file contains hidden or 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,35 @@ | ||
| export default { | ||
| create(context) { | ||
| return { | ||
| CallExpression(node) { | ||
| if ( | ||
| node.callee.type === "MemberExpression" && | ||
| node.callee.object.name === "z" && | ||
| node.callee.property.name === "array" && | ||
| node.arguments.length === 1 | ||
| ) { | ||
| const argSource = context.sourceCode.getText(node.arguments[0]); | ||
| context.report({ | ||
| data: { type: argSource }, | ||
| fix(fixer) { | ||
| return fixer.replaceText(node, `${argSource}.array()`); | ||
| }, | ||
| messageId: "noZArray", | ||
| node, | ||
| }); | ||
| } | ||
| }, | ||
| }; | ||
| }, | ||
| meta: { | ||
| docs: { | ||
| description: "Disallow z.array(type) in favor of type.array()", | ||
| }, | ||
| fixable: "code", | ||
| messages: { | ||
| noZArray: "Use `{{type}}.array()` instead of `z.array({{type}})`.", | ||
| }, | ||
| schema: [], | ||
| type: "suggestion", | ||
| }, | ||
| }; |
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.