Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
"recommended": false,
"correctness": {
"all": false,
"noUnusedVariables": "error",
"noPrecisionLoss": "error"
"noPrecisionLoss": "error",
"noUnusedImports": "error"
},
"complexity": {
"all": false,
"useRegexLiterals": "error"
},
"complexity": {
"useRegexLiterals": "error"
Expand All @@ -25,13 +29,12 @@
"all": false,
"noControlCharactersInRegex": "error"
},
"nursery": {
"noUnusedImports": "error"
},
"performance": {
"all": true,
"noAccumulatingSpread": "error",
"noDelete": "off"
"noDelete": "off",
"noBarrelFile": "off",
"noReExportAll": "off"
}
},
"ignore": [
Expand Down Expand Up @@ -85,7 +88,7 @@
"enabled": true,
"quoteStyle": "single",
"arrowParentheses": "asNeeded",
"trailingComma": "all",
"trailingCommas": "all",
"lineEnding": "lf"
},
"parser": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Page } from '@playwright/test';
import { expect } from '@playwright/test';
import type { Event as SentryEvent, EventEnvelope, SpanEnvelope } from '@sentry/core';
import type { EventEnvelope, Event as SentryEvent, SpanEnvelope } from '@sentry/core';

import { sentryTest } from '../../../../utils/fixtures';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
"lib": [
"ES2022",
"dom"
]
"lib": ["ES2022", "dom"]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
"target": "ES2022",
"module": "ES2022",
"useDefineForClassFields": false,
"lib": [
"ES2022",
"dom"
]
"lib": ["ES2022", "dom"]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
interface Props {
title: string;
title: string;
}

const { title } = Astro.props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import Layout from "../../layouts/Layout.astro";
---

<Layout title="Client Error">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import Layout from "../../layouts/Layout.astro";

export const prerender = false;
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import Layout from '../layouts/Layout.astro';
---

<Layout title="Welcome to Astro.">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import Layout from "../../layouts/Layout.astro";

const a = {} as any;
console.log(a.foo.x);
export const prerender = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
import Layout from "../../layouts/Layout.astro"

export const prerender = false
export const prerender = false;
---

<Layout title="Dynamic SSR page">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import Layout from "../../layouts/Layout.astro";

export const prerender = true;
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "astro/tsconfigs/strict"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import astroLogo from '../assets/astro.svg';
import background from '../assets/background.svg';
Comment on lines -2 to -3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm looks like biome doesn't play well with astro? These imports are not unused

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused rule can be disabled in override for urls ending with .astro

---

<div id="container">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import Layout from "../../layouts/Layout.astro";
---

<Layout title="Client Error">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import Layout from "../../layouts/Layout.astro";

export const prerender = false;
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
import Welcome from '../components/Welcome.astro';
import Layout from '../layouts/Layout.astro';

// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh.
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
---
import Avatar from '../../components/Avatar.astro';
import Layout from '../../layouts/Layout.astro';

export const prerender = true;
---
<Layout title="Server Island Page">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import Layout from "../../layouts/Layout.astro";

const a = {} as any;
console.log(a.foo.x);
export const prerender = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
import Layout from "../../layouts/Layout.astro"

export const prerender = false
export const prerender = false;
---

<Layout title="Dynamic SSR page">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import Layout from "../../layouts/Layout.astro";

export const prerender = true;
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"test:build": "pnpm install && pnpm copy:layer",
"test:assert": "pnpm test"
},
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"@sentry-internal/test-utils": "link:../../../test-utils",
"@playwright/test": "^1.44.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
interface Props {
title: string;
body: string;
href: string;
title: string;
body: string;
href: string;
}

const { href, title, body } = Astro.props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
interface Props {
title: string;
title: string;
}

const { title } = Astro.props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
---

<Layout title="Welcome to Astro.">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it } from 'vitest';
import worker from '../src/index';
// test/index.spec.ts
import { SELF, createExecutionContext, env, waitOnExecutionContext } from 'cloudflare:test';
import { describe, expect, it } from 'vitest';
import worker from '../src/index';

// For now, you'll need to do something like this to get a correctly-typed
// `Request` to pass to `worker.fetch()`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"]
},
"include": ["./**/*.ts", "../src/env.d.ts"],
"exclude": []
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"]
},
"include": ["./**/*.ts", "../src/env.d.ts"],
"exclude": []
}
Loading
Loading