diff --git a/.github/workflows/verify-js.yml b/.github/workflows/verify-js.yml
index edabb44..2b9b43d 100644
--- a/.github/workflows/verify-js.yml
+++ b/.github/workflows/verify-js.yml
@@ -25,7 +25,7 @@ jobs:
pnpm add tailwindcss -w
git restore .
- name: Format
- run: pnpm prettier --ignore-path .gitignore --check "**/*.{js,cjs,mjs,jsx,ts,tsx,css,scss,html,json,md,yml,yaml}"
+ run: pnpm prettier --ignore-path .gitignore --check "**/*.{css,scss,html,json,md,mdx,yml,yaml}"
lint-js:
name: Lint JS
diff --git a/examples/hatchet/typescript-connectors/connectors/dropbox.ts b/examples/hatchet/typescript-connectors/connectors/dropbox.ts
index 9ccb907..e324657 100644
--- a/examples/hatchet/typescript-connectors/connectors/dropbox.ts
+++ b/examples/hatchet/typescript-connectors/connectors/dropbox.ts
@@ -58,7 +58,7 @@ const listFolder = dropbox.task({
method: 'POST',
headers: {
'Content-Type': 'application/json',
- Authorization: `Bearer ${token.access_token}`,
+ 'Authorization': `Bearer ${token.access_token}`,
},
body: JSON.stringify({
path: '',
@@ -82,7 +82,7 @@ const listFolder = dropbox.task({
method: 'POST',
headers: {
'Content-Type': 'application/json',
- Authorization: `Bearer ${token.access_token}`,
+ 'Authorization': `Bearer ${token.access_token}`,
},
body: JSON.stringify({
cursor,
@@ -113,7 +113,7 @@ const enrichEntries = dropbox.task({
const token = await ctx.parentOutput(getAccessToken);
const { entries } = await ctx.parentOutput(listFolder);
- const paperFiles = entries.filter((f) => f.name.endsWith('.paper'));
+ const paperFiles = entries.filter(f => f.name.endsWith('.paper'));
if (paperFiles.length === 0) return entries;
ctx.logger.info(`Retrieving metadata for ${paperFiles.length} files.`);
@@ -121,10 +121,10 @@ const enrichEntries = dropbox.task({
method: 'POST',
headers: {
'Content-Type': 'application/json',
- Authorization: `Bearer ${token.access_token}`,
+ 'Authorization': `Bearer ${token.access_token}`,
},
body: JSON.stringify({
- files: paperFiles.map((f) => f.path_lower),
+ files: paperFiles.map(f => f.path_lower),
}),
});
@@ -159,7 +159,7 @@ dropbox.task({
const token = await ctx.parentOutput(getAccessToken);
const { entries } = await ctx.parentOutput(enrichEntries);
- const paperFiles = entries.filter((f) => f.name.endsWith('.paper'));
+ const paperFiles = entries.filter(f => f.name.endsWith('.paper'));
if (paperFiles.length === 0) return;
for (let i = 0; i < paperFiles.length; i++) {
@@ -169,7 +169,7 @@ dropbox.task({
const response = await fetch(`https://content.dropboxapi.com/2/files/export`, {
method: 'POST',
headers: {
- Authorization: `Bearer ${token.access_token}`,
+ 'Authorization': `Bearer ${token.access_token}`,
'Dropbox-API-Arg': JSON.stringify({
path: file.path_lower,
export_format: 'markdown',
diff --git a/examples/node/basics/fs.ts b/examples/node/basics/fs.ts
index c216579..504cf78 100644
--- a/examples/node/basics/fs.ts
+++ b/examples/node/basics/fs.ts
@@ -18,9 +18,9 @@ async function main() {
const [u2] = await measure(usingReadStream);
const [u3] = await measure(usingSharedBuffer);
- const t1 = u1.map((u) => u.arrayBuffers / 1_000_000);
- const t2 = u2.map((u) => u.arrayBuffers / 1_000_000);
- const t3 = u3.map((u) => u.arrayBuffers / 1_000_000);
+ const t1 = u1.map(u => u.arrayBuffers / 1_000_000);
+ const t2 = u2.map(u => u.arrayBuffers / 1_000_000);
+ const t3 = u3.map(u => u.arrayBuffers / 1_000_000);
console.log(
asciichart.plot([t1, t2, t3], {
diff --git a/examples/react/server-rendering/scripts/bench.ts b/examples/react/server-rendering/scripts/bench.ts
index 3aa50ab..5b2d92a 100644
--- a/examples/react/server-rendering/scripts/bench.ts
+++ b/examples/react/server-rendering/scripts/bench.ts
@@ -7,11 +7,11 @@ export const options = {
};
const urls = {
- vite: 'http://127.0.0.1:3000',
+ 'vite': 'http://127.0.0.1:3000',
'vite-stream': 'http://127.0.0.1:3000',
'next-pages': 'http://127.0.0.1:3000',
'next-app': 'http://127.0.0.1:3000/app',
- tss: 'http://127.0.0.1:3000',
+ 'tss': 'http://127.0.0.1:3000',
};
export default function bench() {
diff --git a/examples/react/server-rendering/vite/server-stream.ts b/examples/react/server-rendering/vite/server-stream.ts
index 21ca038..542535a 100644
--- a/examples/react/server-rendering/vite/server-stream.ts
+++ b/examples/react/server-rendering/vite/server-stream.ts
@@ -33,7 +33,7 @@ server.on('request', async function (req, res) {
let renderStream;
if (isDevelopment) {
- await new Promise((resolve) => vite.middlewares(req, res, resolve));
+ await new Promise(resolve => vite.middlewares(req, res, resolve));
template = await fs.readFile(path.resolve(import.meta.dirname, 'index.html'), 'utf8');
template = await vite.transformIndexHtml(url, template);
diff --git a/examples/react/server-rendering/vite/server.ts b/examples/react/server-rendering/vite/server.ts
index 6e243e0..655c997 100644
--- a/examples/react/server-rendering/vite/server.ts
+++ b/examples/react/server-rendering/vite/server.ts
@@ -31,7 +31,7 @@ server.on('request', async function (req, res) {
let render;
if (isDevelopment) {
- await new Promise((resolve) => vite.middlewares(req, res, resolve));
+ await new Promise(resolve => vite.middlewares(req, res, resolve));
template = await fs.readFile(path.resolve(import.meta.dirname, 'index.html'), 'utf8');
template = await vite.transformIndexHtml(url, template);
diff --git a/examples/tanstack/start-solid/babel.config.js b/examples/tanstack/start-solid/babel.config.js
index 7f2c302..dff0f2e 100644
--- a/examples/tanstack/start-solid/babel.config.js
+++ b/examples/tanstack/start-solid/babel.config.js
@@ -3,15 +3,10 @@ export default function babel(api) {
return {
plugins: [
- [
- '@stylexjs/babel-plugin',
- {
- debug: process.env.NODE_ENV === 'development',
- unstable_moduleResolution: {
- type: 'commonJS',
- },
- },
- ],
+ ['@stylexjs/babel-plugin', {
+ debug: process.env.NODE_ENV === 'development',
+ unstable_moduleResolution: { type: 'commonJS' },
+ }],
],
parserOpts: {
plugins: ['jsx', 'typescript'],
diff --git a/examples/tanstack/start-solid/postcss.config.js b/examples/tanstack/start-solid/postcss.config.js
index 6cb2ac9..59240b9 100644
--- a/examples/tanstack/start-solid/postcss.config.js
+++ b/examples/tanstack/start-solid/postcss.config.js
@@ -1,4 +1,3 @@
-/* eslint-disable import-x/no-extraneous-dependencies */
import stylex from '@stylexjs/postcss-plugin';
import autoprefixer from 'autoprefixer';
diff --git a/examples/tanstack/start-solid/src/StaleClosures.tsx b/examples/tanstack/start-solid/src/StaleClosures.tsx
index 206bf6a..7cc3077 100644
--- a/examples/tanstack/start-solid/src/StaleClosures.tsx
+++ b/examples/tanstack/start-solid/src/StaleClosures.tsx
@@ -44,7 +44,7 @@ function Signals() {
Timed Log:
Log:
-