Skip to content

Commit bcc2a89

Browse files
artifact lint parsing fixed
1 parent e1b258f commit bcc2a89

2 files changed

Lines changed: 59 additions & 1 deletion

File tree

app/components/chat/Artifact.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ function ShellCodeBlock({ classsName, code }: ShellCodeBlockProps) {
171171
return (
172172
<div
173173
className={classNames('text-xs', classsName)}
174-
// biome-ignore lint/security/noDangerouslySetInnerHtml: Required for syntax highlighting via Shiki
175174
dangerouslySetInnerHTML={{
176175
__html: shellHighlighter.codeToHtml(code, {
177176
lang: 'shell',

biome.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
3+
"vcs": {
4+
"useIgnoreFile": true
5+
},
6+
"files": {
7+
"ignore": [
8+
"**/static/build/**",
9+
"**/third_party/**",
10+
"third_party/**",
11+
"**/external/**",
12+
"tools/**",
13+
"mesop/**/*.json",
14+
"scripts/**",
15+
"**/esbuild*",
16+
"**/venv/**"
17+
]
18+
},
19+
"organizeImports": {
20+
"enabled": true
21+
},
22+
"linter": {
23+
"enabled": true,
24+
"rules": {
25+
"recommended": true,
26+
"correctness": {
27+
"noUnusedImports": "error"
28+
},
29+
"complexity": {
30+
"useLiteralKeys": "off",
31+
"noForEach": "off"
32+
},
33+
"style": {
34+
"noParameterAssign": "off",
35+
"noNonNullAssertion": "off"
36+
},
37+
"suspicious": {
38+
"noExplicitAny": "off",
39+
"noFallthroughSwitchClause": "off",
40+
"noPrototypeBuiltins": "off",
41+
"noArrayIndexKey": "off"
42+
},
43+
"a11y": {
44+
"useButtonType": "off",
45+
"useIframeTitle": "off",
46+
"noLabelWithoutControl": "off",
47+
"noSvgWithoutTitle": "off"
48+
}
49+
}
50+
},
51+
"formatter": {
52+
"enabled": false
53+
},
54+
"javascript": {
55+
"parser": {
56+
"unsafeParameterDecoratorsEnabled": true
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)