Skip to content

Commit e7feeb5

Browse files
committed
lint with biome
1 parent 712a1b5 commit e7feeb5

File tree

144 files changed

+555
-816
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+555
-816
lines changed

site/.eslintignore

Lines changed: 0 additions & 97 deletions
This file was deleted.

site/.eslintrc.yaml

Lines changed: 0 additions & 205 deletions
This file was deleted.

site/biome.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"files": {
3+
"ignore": ["**/*Generated.ts"]
4+
},
5+
"linter": {
6+
"rules": {
7+
"style": {
8+
"noNonNullAssertion": {
9+
"level": "off"
10+
},
11+
"useSelfClosingElements": {
12+
"level": "off"
13+
}
14+
},
15+
"nursery": {
16+
"noRestrictedImports": {
17+
"level": "error",
18+
"options": {
19+
"paths": {
20+
"@mui/material": "Use @mui/material/<name> instead. See: https://material-ui.com/guides/minimizing-bundle-size/.",
21+
"@mui/icons-material": "Use @mui/icons-material/<name> instead. See: https://material-ui.com/guides/minimizing-bundle-size/.",
22+
"@mui/material/Avatar": "Use components/Avatar/Avatar instead.",
23+
"@mui/material/Alert": "Use components/Alert/Alert instead.",
24+
"@mui/material/Popover": "Use components/Popover/Popover instead.",
25+
"@mui/material/Typography": "Use native HTML elements instead. Eg: <span>, <p>, <h1>, etc.",
26+
"@mui/material/Box": "Use a <div> instead.",
27+
"@mui/material/styles": "Import from @emotion/react instead.",
28+
"lodash": "Use lodash/<name> instead."
29+
}
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}

site/e2e/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as path from "path";
1+
import * as path from "node:path";
22

33
export const coderMain = path.join(__dirname, "../../enterprise/cmd/coder");
44

site/e2e/expectUrl.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ export const expectUrl = expect.extend({
2424
actual,
2525
expected,
2626
message: () =>
27-
"The page does not have the expected URL pathname.\n" +
28-
`Expected: ${this.isNot ? "not" : ""}${this.utils.printExpected(
27+
`The page does not have the expected URL pathname.\nExpected: ${this.isNot ? "not" : ""}${this.utils.printExpected(
2928
expected,
30-
)}\n` +
31-
`Actual: ${this.utils.printReceived(actual)}`,
29+
)}\nActual: ${this.utils.printReceived(actual)}`,
3230
};
3331
},
3432
});

0 commit comments

Comments
 (0)