Skip to content

Commit 6c6cd15

Browse files
committed
chore: tweak biome
1 parent 68ed642 commit 6c6cd15

File tree

13 files changed

+84
-48
lines changed

13 files changed

+84
-48
lines changed

.github/actions/bati-run/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ runs:
5757
run: ${{ runner.os == 'Windows' && 'npm run test' || 'bun turbo run test --only --no-update-notifier --framework-inference false --env-mode loose' }}
5858
working-directory: ${{ inputs.destination }}
5959

60-
- name: Run lint
60+
- name: Run lint:eslint
6161
shell: bash
62-
run: bun turbo run lint --only --no-update-notifier --framework-inference false --env-mode loose
62+
run: bun turbo run lint:eslint --only --no-update-notifier --framework-inference false --env-mode loose
6363
working-directory: ${{ inputs.destination }}
6464

6565
- name: Run lint:biome

biome.json

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,6 @@
1515
]
1616
},
1717
"overrides": [
18-
{
19-
"includes": ["**/*.vue"],
20-
"linter": {
21-
"domains": {
22-
"vue": "recommended"
23-
},
24-
"rules": {
25-
"style": {
26-
"useConst": "off",
27-
"useImportType": "off"
28-
},
29-
"correctness": {
30-
"noUnusedVariables": "off",
31-
"noUnusedImports": "off"
32-
}
33-
}
34-
}
35-
},
36-
{
37-
"includes": ["boilerplates/react", "boilerplates/react-*"],
38-
"linter": {
39-
"domains": {
40-
"react": "recommended"
41-
}
42-
}
43-
},
44-
{
45-
"includes": ["boilerplates/solid", "boilerplates/solid-*"],
46-
"linter": {
47-
"domains": {
48-
"solid": "recommended"
49-
}
50-
}
51-
},
5218
{
5319
"includes": ["packages/**/*.ts", "website/**/*.ts", "website/**/*.tsx"],
5420
"linter": {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": "//",
4+
"linter": {
5+
"domains": {
6+
"react": "recommended"
7+
}
8+
}
9+
}

boilerplates/react/biome.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": "//",
4+
"linter": {
5+
"domains": {
6+
"react": "recommended"
7+
}
8+
}
9+
}

boilerplates/react/files/layouts/LayoutDefault.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export default function LayoutDefault({ children }: { children: React.ReactNode
3535

3636
function Sidebar({ children }: { children: React.ReactNode }) {
3737
return (
38-
// biome-ignore lint/correctness/useUniqueElementIds: static id
3938
<div
4039
id="sidebar"
4140
//# BATI.has("tailwindcss")
@@ -66,9 +65,7 @@ function Sidebar({ children }: { children: React.ReactNode }) {
6665

6766
function Content({ children }: { children: React.ReactNode }) {
6867
return (
69-
// biome-ignore lint/correctness/useUniqueElementIds: static id
7068
<div id="page-container">
71-
{/** biome-ignore lint/correctness/useUniqueElementIds: static id */}
7269
<div
7370
id="page-content"
7471
//# BATI.has("tailwindcss")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": "//",
4+
"linter": {
5+
"domains": {
6+
"solid": "recommended"
7+
}
8+
}
9+
}

boilerplates/solid/biome.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": "//",
4+
"linter": {
5+
"domains": {
6+
"solid": "recommended"
7+
}
8+
}
9+
}

boilerplates/vue-sentry/biome.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": "//",
4+
"linter": {
5+
"domains": {
6+
"vue": "recommended"
7+
},
8+
"rules": {
9+
"style": {
10+
"useConst": "off",
11+
"useImportType": "off"
12+
},
13+
"correctness": {
14+
"noUnusedVariables": "off",
15+
"noUnusedImports": "off"
16+
}
17+
}
18+
}
19+
}

boilerplates/vue-sentry/files/sentry.browser.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import * as Sentry from "@sentry/vue";
2-
import { usePageContext } from "vike-vue/usePageContext";
2+
import { getCurrentInstance } from "vue";
33

44
export const sentryBrowserConfig = () => {
55
// eslint-disable-next-line
66
import.meta.env.PROD === true &&
77
Sentry.init({
8-
// @ts-expect-error
9-
app: usePageContext().app,
8+
app: getCurrentInstance()?.appContext.app,
109
dsn: import.meta.env.PUBLIC_ENV__SENTRY_DSN,
1110
environment: "production-frontend",
12-
//enabled: import.meta.env.DEV ? false : true,
11+
// enabled: import.meta.env.DEV ? false : true,
1312
integrations: [Sentry.replayIntegration()],
1413
// Set tracesSampleRate to 1.0 to capture 100%
1514
// of transactions for tracing.

boilerplates/vue/biome.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
3+
"extends": "//",
4+
"linter": {
5+
"domains": {
6+
"vue": "recommended"
7+
},
8+
"rules": {
9+
"style": {
10+
"useConst": "off",
11+
"useImportType": "off"
12+
},
13+
"correctness": {
14+
"noUnusedVariables": "off",
15+
"noUnusedImports": "off"
16+
}
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)