Skip to content

Commit b24b3c2

Browse files
committed
Add initial biome configuration file for project setup
- Introduced biome.json with settings for VCS, file inclusion, formatting, linting, and JavaScript/HTML specific configurations. - Enabled formatter and linter with customized rules for style, accessibility, and security. - Configured JavaScript formatter options including quote styles and semicolon usage. - Set HTML formatter to always self-close void elements.
1 parent 0c205c6 commit b24b3c2

File tree

18 files changed

+1764
-673
lines changed

18 files changed

+1764
-673
lines changed

.prettierrc

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 329 additions & 335 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ enableGlobalCache: true
22

33
nodeLinker: node-modules
44

5-
yarnPath: .yarn/releases/yarn-4.9.1.cjs
5+
yarnPath: .yarn/releases/yarn-4.11.0.cjs

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ RUN apt-get update -y && \
2626

2727
RUN mkdir schemas
2828
RUN chown node:node schemas
29-
RUN curl https://json.schemastore.org/github-action.json -o schemas/actions.json
30-
RUN curl https://json.schemastore.org/github-workflow.json -o schemas/workflows.json
29+
RUN curl https://www.schemastore.org/github-action.json -o schemas/actions.json
30+
RUN curl https://www.schemastore.org/github-workflow.json -o schemas/workflows.json
3131
RUN chmod +x ./entrypoint.sh
3232

3333
FROM base AS builder

biome.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": [
11+
"./src/**/*.{ts,tsx,js,jsx,html,css,json}",
12+
"./.vscode/**/*.{ts,tsx,js,jsx,html,css,json}",
13+
"./biome.json",
14+
"./tsup.config.ts",
15+
"./tsconfig.json"
16+
]
17+
},
18+
"formatter": {
19+
"enabled": true,
20+
"formatWithErrors": false,
21+
"indentStyle": "tab",
22+
"indentWidth": 4,
23+
"lineEnding": "crlf",
24+
"lineWidth": 120,
25+
"attributePosition": "auto",
26+
"bracketSameLine": false,
27+
"bracketSpacing": true,
28+
"expand": "auto",
29+
"useEditorconfig": true
30+
},
31+
"linter": {
32+
"enabled": true,
33+
"rules": {
34+
"recommended": true,
35+
"security": { "noDangerouslySetInnerHtml": "off" },
36+
37+
"style": {
38+
"noNonNullAssertion": "off"
39+
},
40+
"a11y": {
41+
"noStaticElementInteractions": "off",
42+
"useKeyWithClickEvents": "off",
43+
"noRedundantAlt": "off"
44+
},
45+
"suspicious": {
46+
"noUnknownAtRules": "off",
47+
"noArrayIndexKey": "off",
48+
"noExplicitAny": "off",
49+
"noUnsafeDeclarationMerging": "off"
50+
}
51+
}
52+
},
53+
"javascript": {
54+
"formatter": {
55+
"jsxQuoteStyle": "single",
56+
"quoteProperties": "asNeeded",
57+
"trailingCommas": "es5",
58+
"semicolons": "always",
59+
"arrowParentheses": "always",
60+
"bracketSameLine": false,
61+
"quoteStyle": "single",
62+
"attributePosition": "auto",
63+
"bracketSpacing": true
64+
}
65+
},
66+
"html": {
67+
"formatter": {
68+
"selfCloseVoidElements": "always"
69+
}
70+
},
71+
"assist": {
72+
"enabled": true,
73+
"actions": {
74+
"source": {
75+
"organizeImports": "off"
76+
}
77+
}
78+
}
79+
}

package.json

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
{
22
"name": "@bracketed/actions-manager",
3-
"packageManager": "yarn@4.9.1",
4-
"main": "dist/index.js",
3+
"packageManager": "yarn@4.11.0",
4+
"main": "dist/index.mjs",
5+
"type": "module",
56
"scripts": {
67
"start": "yarn node ./dist/index.mjs",
78
"test": "yarn compile && yarn start",
89
"compile": "yarn tsup",
9-
"generate": "yarn node ./generate-types.ts"
10+
"generate": "yarn tsx ./generate-types.ts"
1011
},
1112
"devDependencies": {
12-
"@bracketed/typescript-config": "^4.4.0",
13-
"@types/js-yaml": "^4",
14-
"@types/node": "^22.13.11",
15-
"@types/react": "^19",
16-
"@types/react-dom": "^19",
17-
"@types/turndown": "^5.0.5",
18-
"esbuild": "^0.25.1",
13+
"@biomejs/biome": "^2.3.7",
14+
"@bracketed/tsup-configuration": "^1.0.5",
15+
"@bracketed/typescript-config": "^4.7.1",
16+
"@swc/core": "^1.15.3",
17+
"@types/js-yaml": "^4.0.9",
18+
"@types/node": "^24.10.1",
19+
"@types/react": "^19.2.6",
20+
"@types/react-dom": "^19.2.3",
21+
"@types/turndown": "^5.0.6",
22+
"esbuild": "^0.27.0",
1923
"esbuild-plugin-file-path-extensions": "^2.1.4",
2024
"esbuild-plugin-version-injector": "^1.2.1",
21-
"prettier": "^3.5.3",
22-
"tsup": "^8.4.0",
23-
"tsx": "^4.19.3",
24-
"typescript": "^5.8.2"
25+
"tsup": "^8.5.1",
26+
"tsx": "^4.20.6",
27+
"typescript": "^5.9.3"
2528
},
2629
"dependencies": {
27-
"@bracketed/logger": "^1.0.12",
28-
"cheerio": "^1.0.0",
29-
"js-yaml": "^4.1.0",
30+
"@bracketed/logger": "^1.1.1",
31+
"cheerio": "^1.1.2",
32+
"js-yaml": "^4.1.1",
3033
"json-schema-to-typescript": "^15.0.4",
31-
"react": "^19.0.0",
32-
"react-dom": "^19.0.0",
33-
"turndown": "^7.2.0"
34+
"react": "^19.2.0",
35+
"react-dom": "^19.2.0",
36+
"turndown": "^7.2.2"
3437
}
3538
}

src/components/date-footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { getGitRepo, getLatestCommitFullHash, getLatestCommitHash, getLatestCommitUser } from '@/utils/index';
12
import { Logger } from '@bracketed/logger';
23
import * as cheerio from 'cheerio';
34
import React from 'react';
45
import ReactDOMServer from 'react-dom/server';
56
import TurndownService from 'turndown';
6-
import { getGitRepo, getLatestCommitFullHash, getLatestCommitHash, getLatestCommitUser } from '../utils';
77

88
const Component: React.FC = () => (
99
<div>

src/components/footer.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ const Component: React.FC = () => (
88
<div>
99
<hr />
1010
<h1>Contribution & Help</h1>
11-
Feel free to contribute to this project, join our <a href='https://discord.com/invite/JZ4949cvMT'>
12-
discord
13-
</a>{' '}
11+
Feel free to contribute to this project, join our <a href='https://discord.com/invite/JZ4949cvMT'>discord</a>{' '}
1412
and help us with future developments of Project Bracketed & Packages by Bracketed Softworks. Please also notify
1513
us of errors within our projects as we may not be aware of them at the time.
1614
<br />

src/components/glossary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type { FileDataMap } from '@/types/index';
12
import { Logger } from '@bracketed/logger';
23
import * as cheerio from 'cheerio';
34
import React from 'react';
45
import ReactDOMServer from 'react-dom/server';
56
import TurndownService from 'turndown';
6-
import type { FileDataMap } from '../types';
77

88
const Component: React.FC<{ data: Array<{ name: string; data: Array<FileDataMap> }> }> = (props: {
99
data: Array<{ name: string; data: Array<FileDataMap> }>;

src/components/item.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import type { FinderItem } from '@/types/index';
2+
import { getGitBranch, getGitRepo } from '@/utils/index';
13
import { Logger } from '@bracketed/logger';
24
import * as cheerio from 'cheerio';
35
import React from 'react';
46
import ReactDOMServer from 'react-dom/server';
57
import TurndownService from 'turndown';
6-
import type { FinderItem } from '../types';
7-
import { getGitBranch, getGitRepo } from '../utils';
88

99
const Component: React.FC<FinderItem> = (props: FinderItem) => (
1010
<div>
@@ -46,12 +46,7 @@ export const buildItemMarkdown = (item: FinderItem) => {
4646
const Turndown = new TurndownService();
4747
const CheerioComponent = cheerio.load(
4848
ReactDOMServer.renderToStaticMarkup(
49-
<Component
50-
content={item.content}
51-
file={item.file}
52-
dir={item.dir}
53-
type={item.type}
54-
/>
49+
<Component content={item.content} file={item.file} dir={item.dir} type={item.type} />
5550
)
5651
);
5752

0 commit comments

Comments
 (0)