Skip to content

Commit d0eb593

Browse files
Merge pull request #705 from preactjs/prettier-update
chore: update prettier
2 parents 33f5218 + 02a2524 commit d0eb593

8 files changed

Lines changed: 27 additions & 18 deletions

File tree

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
4+
title: ""
5+
labels: ""
6+
assignees: ""
77
---
88

99
- [ ] Check if updating to the latest version resolves the issue
1010

1111
**Environment**
12+
1213
- [ ] I am using `@preact/signals-core`
1314
- [ ] I am using `@preact/signals`
1415
- [ ] I am using `@preact/signals-react`

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: ""
55
labels: feature request
6-
assignees: ''
6+
assignees: ""
77
---
88

99
**Describe the feature you'd love to see**

docs/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig(env => ({
2525
process.env.DEBUG
2626
? preact({
2727
exclude: /\breact/,
28-
})
28+
})
2929
: null,
3030
multiSpa(["index.html", "demos/**/*.html"]),
3131
unsetPreactAliases(),
@@ -68,7 +68,7 @@ export default defineConfig(env => ({
6868
// one, as expected. I'm working around this by just mainly aliasing
6969
// the package that needs to be resolved.
7070
"@preact/signals-react/runtime": join(root, "react/runtime"),
71-
}
71+
}
7272
: packages(false),
7373
},
7474
}));

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ module.exports = function (config) {
318318
watched: false,
319319
type: "js",
320320
},
321-
]
321+
]
322322
: []),
323323
{
324324
pattern:

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"microbundle": "^0.15.1",
8787
"mocha": "^10.0.0",
8888
"oxlint": "^1.3.0",
89-
"prettier": "^2.7.1",
89+
"prettier": "^3.6.2",
9090
"shx": "^0.3.4",
9191
"sinon": "^14.0.0",
9292
"sinon-chai": "^3.7.0",
@@ -98,7 +98,8 @@
9898
]
9999
},
100100
"prettier": {
101-
"arrowParens": "avoid"
101+
"arrowParens": "avoid",
102+
"trailingComma": "es5"
102103
},
103104
"pnpm": {
104105
"patchedDependencies": {

packages/react-transform/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,10 @@ function transformFunction(
433433
const hookUsage = options.experimental?.noTryFinally
434434
? UNMANAGED
435435
: isHook
436-
? MANAGED_HOOK
437-
: isComponent
438-
? MANAGED_COMPONENT
439-
: UNMANAGED;
436+
? MANAGED_HOOK
437+
: isComponent
438+
? MANAGED_COMPONENT
439+
: UNMANAGED;
440440

441441
let newBody: BabelTypes.BlockStatement;
442442
if (hookUsage !== UNMANAGED) {

packages/react/test/browser/react-router.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ const Routes = ReactRouter.Routes
1717
const Route = ReactRouter.Routes
1818
? ReactRouter.Route
1919
: // react-router-dom v5 requires the element prop to be passed as children.
20-
({ element, ...props }: any) => (
20+
({ element, ...props }: any) => (
2121
<ReactRouter.Route {...props}>{element}</ReactRouter.Route>
22-
);
22+
);
2323

2424
describe("@preact/signals-react", () => {
2525
let scratch: HTMLDivElement;

pnpm-lock.yaml

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)