Skip to content

Commit 1d99d1f

Browse files
committed
feat: update biome import rule
Signed-off-by: Adam Setch <[email protected]>
1 parent 34061a6 commit 1d99d1f

File tree

8 files changed

+21
-10
lines changed

8 files changed

+21
-10
lines changed

astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import tailwindcss from '@tailwindcss/vite';
21
import { defineConfig } from 'astro/config';
32
import icon from 'astro-icon';
3+
import tailwindcss from '@tailwindcss/vite';
44

55
// https://astro.build/config
66
export default defineConfig({

biome.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
"organizeImports": {
77
"level": "on",
88
"options": {
9-
"groups": [":PACKAGE:", ":BLANK_LINE:", "**"]
9+
"groups": [
10+
["astro:*", "astro*", "astro*/*"],
11+
":PACKAGE:",
12+
":ALIAS:"
13+
]
1014
}
1115
}
1216
}
@@ -57,6 +61,19 @@
5761
"formatter": {
5862
"quoteStyle": "double"
5963
}
64+
},
65+
"linter": {
66+
"rules": {
67+
"style": {
68+
"useConst": "off",
69+
70+
"useImportType": "off"
71+
},
72+
"correctness": {
73+
"noUnusedVariables": "off",
74+
"noUnusedImports": "off"
75+
}
76+
}
6077
}
6178
}
6279
],

src/components/Footer.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import { Icon } from "astro-icon/components";
3-
43
import { siteMetadata, URLs } from "~/constants";
54
65
const { currentPathname } = Astro.props;

src/components/GitHubRepo.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import { Icon } from "astro-icon/components";
33
import { Octokit } from "octokit";
4-
54
import { siteMetadata, URLs } from "~/constants";
65
import type { RepoStats } from "~/types";
76

src/components/LatestRelease.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
import { Icon } from "astro-icon/components";
33
import { format } from "date-fns";
44
import { Octokit } from "octokit";
5-
5+
import DownloadButton from "~/components/DownloadButton.astro";
66
import { siteMetadata, URLs } from "~/constants";
77
import type {
88
DownloadLink,
99
DownloadLinks,
1010
HeroData,
1111
ReleaseAsset,
1212
} from "~/types";
13-
import DownloadButton from "./DownloadButton.astro";
1413
1514
const octokit = new Octokit();
1615

src/layouts/SectionRow.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
2-
import { marked } from "marked";
3-
42
import { Image } from "astro:assets";
3+
import { marked } from "marked";
54
65
export interface Props {
76
title: string;

src/pages/faq.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import { Accordion, AccordionItem } from "accessible-astro-components";
3-
43
import Layout from "~/layouts/Layout.astro";
54
65
const faqs: FAQFrontmatter[] = Object.values(

src/pages/index.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import { Icon } from "astro-icon/components";
3-
43
import Hero from "~/components/Hero.astro";
54
import { openSourceLibs } from "~/icons/icons";
65
import Layout from "~/layouts/Layout.astro";

0 commit comments

Comments
 (0)