Skip to content

Commit 02bd63d

Browse files
committed
Fix lint errors
1 parent c28873a commit 02bd63d

File tree

5 files changed

+33
-53
lines changed

5 files changed

+33
-53
lines changed

app/authzed/concepts/authzed-materialize/page.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ In summary, AuthZed Materialize allows you to:
2525
## Limitations
2626

2727
- Your schema can contain any of the following, but they cannot be on the path of your configured Materialize permissions or it will throw an error:
28+
2829
- [Caveats]
2930
- [Wildcard] subject types
3031
- [.all intersections]

app/authzed/concepts/restricted-api-access/page.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ If you want to apply a configuration to an existing SpiceDB cluster without down
275275
2. Prepare the FGAM configuration YAML.
276276
You'll add the hashes that you generated in the previous step to the `hash` key in the `token` list for each respective token.
277277
This process heavily depends on what each client needs:
278+
278279
1. You may want to start with FGAM tokens bound to a admin-like Role, since that's what the original PSKs effectively were.
279280
This is probably lower risk, and then from there you can move to start trimming down permissions.
280281
2. Or you may want to move directly to downscoped tokens for your individual services, creating the tokens you need.

app/spicedb/concepts/commands/page.mdx

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ A database that stores and computes permissions
2727

2828
### Children commands
2929

30-
- [spicedb datastore](#reference-spicedb-datastore) - datastore operations
31-
- [spicedb lsp](#reference-spicedb-lsp) - serve language server protocol
32-
- [spicedb man](#reference-spicedb-man) - Generate man page
33-
- [spicedb serve](#reference-spicedb-serve) - serve the permissions database
34-
- [spicedb serve-testing](#reference-spicedb-serve-testing) - test server with an in-memory datastore
35-
- [spicedb version](#reference-spicedb-version) - displays the version of SpiceDB
36-
30+
- [spicedb datastore](#reference-spicedb-datastore) - datastore operations
31+
- [spicedb lsp](#reference-spicedb-lsp) - serve language server protocol
32+
- [spicedb man](#reference-spicedb-man) - Generate man page
33+
- [spicedb serve](#reference-spicedb-serve) - serve the permissions database
34+
- [spicedb serve-testing](#reference-spicedb-serve-testing) - test server with an in-memory datastore
35+
- [spicedb version](#reference-spicedb-version) - displays the version of SpiceDB
3736

3837
## Reference: `spicedb datastore`
3938

@@ -49,11 +48,10 @@ Operations against the configured datastore
4948

5049
### Children commands
5150

52-
- [spicedb datastore gc](#reference-spicedb-datastore-gc) - executes garbage collection
53-
- [spicedb datastore head](#reference-spicedb-datastore-head) - compute the head (latest) database migration revision available
54-
- [spicedb datastore migrate](#reference-spicedb-datastore-migrate) - execute datastore schema migrations
55-
- [spicedb datastore repair](#reference-spicedb-datastore-repair) - executes datastore repair
56-
51+
- [spicedb datastore gc](#reference-spicedb-datastore-gc) - executes garbage collection
52+
- [spicedb datastore head](#reference-spicedb-datastore-head) - compute the head (latest) database migration revision available
53+
- [spicedb datastore migrate](#reference-spicedb-datastore-migrate) - execute datastore schema migrations
54+
- [spicedb datastore repair](#reference-spicedb-datastore-repair) - executes datastore repair
5755

5856
## Reference: `spicedb datastore gc`
5957

@@ -148,8 +146,6 @@ spicedb datastore gc [flags]
148146
--skip-release-check if true, skips checking for new SpiceDB releases
149147
```
150148

151-
152-
153149
## Reference: `spicedb datastore head`
154150

155151
compute the head (latest) database migration revision available
@@ -181,8 +177,6 @@ spicedb datastore head [flags]
181177
--skip-release-check if true, skips checking for new SpiceDB releases
182178
```
183179

184-
185-
186180
## Reference: `spicedb datastore migrate`
187181

188182
Executes datastore schema migrations for the datastore.
@@ -222,8 +216,6 @@ spicedb datastore migrate [revision] [flags]
222216
--skip-release-check if true, skips checking for new SpiceDB releases
223217
```
224218

225-
226-
227219
## Reference: `spicedb datastore repair`
228220

229221
Executes a repair operation for the datastore
@@ -317,8 +309,6 @@ spicedb datastore repair [flags]
317309
--skip-release-check if true, skips checking for new SpiceDB releases
318310
```
319311

320-
321-
322312
## Reference: `spicedb lsp`
323313

324314
serve language server protocol
@@ -342,20 +332,17 @@ spicedb lsp [flags]
342332
--skip-release-check if true, skips checking for new SpiceDB releases
343333
```
344334

345-
346-
347335
## Reference: `spicedb man`
348336

349337
Generate a man page for SpiceDB.
350-
The output can be redirected to a file and installed to the system:
338+
The output can be redirected to a file and installed to the system:
351339

352340
```
353341
spicedb man > spicedb.1
354342
sudo mv spicedb.1 /usr/share/man/man1/
355343
sudo mandb # Update man page database
356344
```
357345

358-
359346
```
360347
spicedb man
361348
```
@@ -368,8 +355,6 @@ spicedb man
368355
--skip-release-check if true, skips checking for new SpiceDB releases
369356
```
370357

371-
372-
373358
## Reference: `spicedb serve`
374359

375360
start a SpiceDB server
@@ -558,8 +543,6 @@ spicedb serve [flags]
558543
--skip-release-check if true, skips checking for new SpiceDB releases
559544
```
560545

561-
562-
563546
## Reference: `spicedb serve-testing`
564547

565548
An in-memory spicedb server which serves completely isolated datastores per client-supplied auth token used.
@@ -621,8 +604,6 @@ spicedb serve-testing [flags]
621604
--skip-release-check if true, skips checking for new SpiceDB releases
622605
```
623606

624-
625-
626607
## Reference: `spicedb version`
627608

628609
displays the version of SpiceDB
@@ -644,6 +625,3 @@ spicedb version [flags]
644625
--log-level string verbosity of logging ("trace", "debug", "info", "warn", "error") (default "info")
645626
--skip-release-check if true, skips checking for new SpiceDB releases
646627
```
647-
648-
649-

components/scripts.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
'use client';
1+
"use client";
22

3-
import inEU from '@segment/in-eu';
4-
import { usePathname, useSearchParams } from 'next/navigation';
5-
import { Router } from 'next/router';
6-
import Script from 'next/script';
7-
import posthog from 'posthog-js';
8-
import { Suspense, useEffect, useState } from 'react';
3+
import inEU from "@segment/in-eu";
4+
import { usePathname, useSearchParams } from "next/navigation";
5+
import { Router } from "next/router";
6+
import Script from "next/script";
7+
import posthog from "posthog-js";
8+
import { Suspense, useEffect, useState } from "react";
99

10-
const isProd = process.env.NEXT_PUBLIC_VERCEL_ENV === 'production';
11-
const baseDir = process.env.NEXT_PUBLIC_BASE_DIR || '';
10+
const isProd = process.env.NEXT_PUBLIC_VERCEL_ENV === "production";
11+
const baseDir = process.env.NEXT_PUBLIC_BASE_DIR || "";
1212

1313
function HubSpot() {
1414
const hsId = process.env.NEXT_PUBLIC_HUBSPOT_ID;
@@ -31,8 +31,8 @@ function HubSpot() {
3131
if (searchParams && searchParams.toString()) {
3232
path = path + `?${searchParams.toString()}`;
3333
}
34-
hs.push(['setPath', path]);
35-
hs.push(['trackPageView']);
34+
hs.push(["setPath", path]);
35+
hs.push(["trackPageView"]);
3636
}
3737
}, [afterLoad, pathname, searchParams]);
3838

instrumentation-client.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import posthog from 'posthog-js';
2-
import inEU from '@segment/in-eu';
1+
import posthog from "posthog-js";
2+
import inEU from "@segment/in-eu";
33

4-
const isProd = process.env.NEXT_PUBLIC_VERCEL_ENV === 'production';
4+
const isProd = process.env.NEXT_PUBLIC_VERCEL_ENV === "production";
55

66
const initPostHog = () => {
77
if (inEU() || !process.env.NEXT_PUBLIC_POSTHOG_KEY) {
88
return;
99
}
1010

11-
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY ?? '', {
12-
api_host: isProd ? '/i' : process.env.NEXT_PUBLIC_POSTHOG_HOST, // See Posthog rewrites in next config
11+
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY ?? "", {
12+
api_host: isProd ? "/i" : process.env.NEXT_PUBLIC_POSTHOG_HOST, // See Posthog rewrites in next config
1313
ui_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
14-
defaults: '2025-11-30',
15-
person_profiles: 'always',
14+
defaults: "2025-11-30",
15+
person_profiles: "always",
1616
loaded: (posthog) => {
17-
if (process.env.NODE_ENV === 'development') posthog.debug();
17+
if (process.env.NODE_ENV === "development") posthog.debug();
1818
},
1919
});
2020
};
2121

22-
initPostHog();
22+
initPostHog();

0 commit comments

Comments
 (0)