Skip to content

Commit 04788e3

Browse files
committed
fix: change biome package to @biomejs/biome
Signed-off-by: Sonia_Sandler <sandler.sonia@gmail.com>
1 parent 6dc907e commit 04788e3

12 files changed

+303
-903
lines changed

biome.jsonc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"formatter": {
3+
"indentStyle": "space",
4+
"lineWidth": 120,
5+
"attributePosition": "auto"
6+
},
7+
"files": {
8+
"maxSize": 1600000,
9+
"includes": ["**", "!**/coverage", "!**/dist"]
10+
},
11+
"javascript": {
12+
"parser": {
13+
"unsafeParameterDecoratorsEnabled": true
14+
},
15+
"formatter": {
16+
"arrowParentheses": "asNeeded",
17+
"bracketSameLine": true,
18+
"attributePosition": "auto",
19+
"quoteStyle": "single"
20+
}
21+
},
22+
"json": {
23+
"formatter": {
24+
"indentWidth": 2
25+
}
26+
},
27+
"linter": {
28+
"enabled": true,
29+
"rules": {
30+
"style": {
31+
"noParameterAssign": "error",
32+
"useAsConstAssertion": "error",
33+
"useDefaultParameterLast": "error",
34+
"useEnumInitializers": "error",
35+
"useSelfClosingElements": "error",
36+
"useSingleVarDeclarator": "error",
37+
"noUnusedTemplateLiteral": "error",
38+
"useNumberNamespace": "error",
39+
"noInferrableTypes": "error",
40+
"noUselessElse": "error"
41+
}
42+
}
43+
},
44+
"assist": { "actions": { "source": { "organizeImports": "off" } } }
45+
}

eslint.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ const compat = new FlatCompat({
4040
allConfig: js.configs.all,
4141
});
4242

43-
const TYPESCRIPT_PROJECTS = [
44-
'./tsconfig.json',
45-
];
43+
const TYPESCRIPT_PROJECTS = ['./tsconfig.json'];
4644

4745
export default [
4846
{
@@ -130,7 +128,6 @@ export default [
130128
},
131129
],
132130

133-
'@typescript-eslint/explicit-function-return-type': 'off',
134131
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', caughtErrors: 'none' }],
135132
'@typescript-eslint/no-var-requires': 'off',
136133
'@typescript-eslint/consistent-type-imports': 'error',
@@ -171,7 +168,6 @@ export default [
171168
'sonarjs/no-small-switch': 'off',
172169
// redundant with @typescript-eslint/no-unused-vars
173170
'sonarjs/no-ignored-exceptions': 'off',
174-
'sonarjs/no-nested-functions': 'off',
175171
'sonarjs/todo-tag': 'off',
176172
'sonarjs/no-nested-functions': 'off',
177173
'sonarjs/sonar-max-params': 'off',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"typecheck": "tsc --noEmit"
2323
},
2424
"devDependencies": {
25+
"@biomejs/biome": "^2.3.9",
2526
"@eslint/compat": "^2.0.0",
2627
"@eslint/eslintrc": "^3.3.1",
2728
"@eslint/js": "^9.39.1",
2829
"@octokit/rest": "^22.0.1",
2930
"@podman-desktop/api": "1.23.1",
3031
"@types/node": "^24",
3132
"@vitest/coverage-v8": "^3.2.4",
32-
"biome": "^0.3.3",
3333
"eslint": "^9.39.1",
3434
"eslint-import-resolver-custom-alias": "^1.3.2",
3535
"eslint-import-resolver-typescript": "^4.4.4",

0 commit comments

Comments
 (0)