Skip to content

Commit 6427af1

Browse files
committed
add only biome config
1 parent 1ec5583 commit 6427af1

7 files changed

Lines changed: 210 additions & 1117 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,6 @@ node_modules
6464
dist
6565
.DS_Store
6666
/.local*
67+
68+
.eslintcache
69+
.stylelintcache

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ fmt-ui-quick:
402402
cd ui/v2.5 && \
403403
files=$$(git diff --name-only --relative --diff-filter d . ../../graphql); \
404404
if [ -n "$$files" ]; then \
405-
npm run prettier -- --write $$files; \
405+
npm run biome -- format --write $$files; \
406406
fi
407407

408408
# does not run tsc checks, as they are slow
@@ -411,9 +411,9 @@ validate-ui-quick:
411411
tsfiles=$$(git diff --name-only --relative --diff-filter d src | grep -e "\.tsx\?\$$"); \
412412
scssfiles=$$(git diff --name-only --relative --diff-filter d src | grep "\.scss"); \
413413
prettyfiles=$$(git diff --name-only --relative --diff-filter d . ../../graphql); \
414-
if [ -n "$$tsfiles" ]; then npm run eslint -- $$tsfiles; fi && \
414+
if [ -n "$$tsfiles" ]; then npm run biome -- check $$tsfiles; fi && \
415415
if [ -n "$$scssfiles" ]; then npm run stylelint -- $$scssfiles; fi && \
416-
if [ -n "$$prettyfiles" ]; then npm run prettier -- --check $$prettyfiles; fi
416+
if [ -n "$$prettyfiles" ]; then npm run biome -- format --check $$prettyfiles; fi
417417

418418
# runs all of the backend PR-acceptance steps
419419
.PHONY: validate-backend

ui/v2.5/.gitignore

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ src/core/generated-graphql.ts
33

44
# dependencies
55
/node_modules
6-
/.pnp
7-
.pnp.js
86

97
# testing
108
/coverage
@@ -18,11 +16,4 @@ src/core/generated-graphql.ts
1816
.env.local
1917
.env.development.local
2018
.env.test.local
21-
.env.production.local
22-
23-
npm-debug.log*
24-
yarn-debug.log*
25-
yarn-error.log*
26-
27-
.eslintcache
28-
.stylelintcache
19+
.env.production.local

ui/v2.5/.prettierignore

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

ui/v2.5/biome.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
3+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
4+
"files": {
5+
"ignoreUnknown": false,
6+
"includes": [
7+
"**",
8+
"../../graphql/**",
9+
"!src/core/generated-graphql.ts",
10+
"!src/pluginApi.d.ts"
11+
]
12+
},
13+
"formatter": { "enabled": false, "indentStyle": "space" },
14+
"linter": {
15+
"enabled": true,
16+
"domains": {
17+
"react": "recommended",
18+
"types": "recommended"
19+
},
20+
"rules": {
21+
"recommended": false,
22+
"style": { "noNestedTernary": "off", "useBlockStatements": "off" },
23+
"correctness": {
24+
"useExhaustiveDependencies": "off",
25+
"useJsxKeyInIterable": "off"
26+
},
27+
"suspicious": {
28+
"noExplicitAny": "off",
29+
"noArrayIndexKey": "off"
30+
}
31+
}
32+
},
33+
"javascript": { "formatter": { "quoteStyle": "double" } },
34+
"assist": {
35+
"enabled": true,
36+
"actions": { "source": { "organizeImports": "off" } }
37+
}
38+
}

ui/v2.5/package.json

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
"validate": "npm run lint && npm run check && npm run format-check",
1414
"lint": "npm run lint:js && npm run lint:css",
1515
"lint:css": "stylelint --cache \"src/**/*.scss\"",
16-
"lint:js": "eslint --cache src/",
16+
"lint:js": "biome check src/",
1717
"check": "tsc --noEmit",
1818
"eslint": "eslint",
1919
"prettier": "prettier",
2020
"stylelint": "stylelint",
21-
"format": "prettier --write . ../../graphql",
22-
"format-check": "prettier --check . ../../graphql",
21+
"format": "biome format --write . ../../graphql",
22+
"format-check": "biome format --check . ../../graphql",
2323
"gqlgen": "gql-gen --config codegen.ts",
2424
"extract": "NODE_ENV=development extract-messages -l=en,de -o src/locale -d en --flat false 'src/**/!(*.test).tsx'"
2525
},
@@ -102,34 +102,22 @@
102102
"@types/react-helmet": "^6.1.6",
103103
"@types/react-router-bootstrap": "^0.24.5",
104104
"@types/react-router-hash-link": "^2.4.5",
105-
"@types/three": "^0.183.1",
106-
"@types/ua-parser-js": "^0.7.39",
107-
"@types/video.js": "^7.3.58",
108-
"@types/videojs-mobile-ui": "^0.8.3",
109-
"@types/videojs-seek-buttons": "^2.1.3",
110-
"@typescript-eslint/eslint-plugin": "^7.18.0",
111-
"@typescript-eslint/parser": "^7.18.0",
112-
"@vitejs/plugin-react": "^5.2.0",
113-
"eslint": "^8.57.1",
114-
"eslint-config-airbnb": "^19.0.4",
115-
"eslint-config-airbnb-typescript": "^18.0.0",
116-
"eslint-config-prettier": "^8.10.2",
117-
"eslint-plugin-deprecation": "^3.0.0",
118-
"eslint-plugin-import": "^2.32.0",
119-
"eslint-plugin-jsx-a11y": "^6.10.2",
120-
"eslint-plugin-react": "^7.37.5",
121-
"eslint-plugin-react-hooks": "^4.6.2",
122-
"extract-react-intl-messages": "^4.1.1",
123-
"postcss": "^8.5.8",
124-
"postcss-scss": "^4.0.9",
125-
"prettier": "^2.8.8",
126-
"sass": "^1.98.0",
127-
"stylelint": "^17.6.0",
128-
"stylelint-order": "^8.1.1",
129-
"terser": "^5.46.1",
130-
"ts-node": "~10.9.2",
131-
"typescript": "~5.9.3",
132-
"vite": "^7.3.2",
105+
"@types/three": "^0.154.0",
106+
"@types/ua-parser-js": "^0.7.36",
107+
"@types/video.js": "^7.3.51",
108+
"@types/videojs-mobile-ui": "^0.8.0",
109+
"@types/videojs-seek-buttons": "^2.1.0",
110+
"@typescript-eslint/eslint-plugin": "^5.52.0",
111+
"@vitejs/plugin-legacy": "^5.4.3",
112+
"@vitejs/plugin-react": "^5.1.0",
113+
"postcss-scss": "^4.0.6",
114+
"sass": "^1.58.1",
115+
"stylelint": "^15.10.1",
116+
"stylelint-order": "^6.0.2",
117+
"terser": "^5.9.0",
118+
"ts-node": "^10.9.1",
119+
"typescript": "~4.8.4",
120+
"vite": "^5.4.21",
133121
"vite-plugin-compression": "^0.5.1",
134122
"vite-tsconfig-paths": "^6.1.1"
135123
}

0 commit comments

Comments
 (0)