Added rome to frontend

This commit is contained in:
niku 2023-03-03 16:49:55 +01:00
parent da00ecf8c1
commit 39d2dc6efb
3 changed files with 77 additions and 1 deletions

View File

@ -5,9 +5,12 @@
"type": "module",
"scripts": {
"dev": " tsc && vite build --watch",
"build": "tsc && vite build"
"build": "tsc && vite build",
"lint": "rome check .",
"format": "rome format . --write"
},
"devDependencies": {
"rome": "^11.0.0",
"typescript": "^4.9.3",
"vite": "^4.1.0",
"vite-plugin-singlefile": "^0.13.3"

View File

@ -1,6 +1,7 @@
lockfileVersion: 5.4
specifiers:
rome: ^11.0.0
typescript: ^4.9.3
vite: ^4.1.0
vite-plugin-singlefile: ^0.13.3
@ -10,6 +11,7 @@ dependencies:
xterm: 5.1.0
devDependencies:
rome: 11.0.0
typescript: 4.9.5
vite: 4.1.4
vite-plugin-singlefile: 0.13.3_vite@4.1.4
@ -214,6 +216,54 @@ packages:
dev: true
optional: true
/@rometools/cli-darwin-arm64/11.0.0:
resolution: {integrity: sha512-F3vkdY+s3FLIEnAjSbyHTuIPB88cLpccimW4ecid5I7S6GzGG3iUJI4xT00JhH73K4P/qW20/9r+kH1T9Du8Xg==}
cpu: [arm64]
os: [darwin]
requiresBuild: true
dev: true
optional: true
/@rometools/cli-darwin-x64/11.0.0:
resolution: {integrity: sha512-X6jhtS6Iml4GOzgNtnLwIp/KXXhSdqeVyfv69m/AHnIzx3gQAjPZ7BPnJLvTCbhe4SKHL+uTZYFSCJpkUUKE6w==}
cpu: [x64]
os: [darwin]
requiresBuild: true
dev: true
optional: true
/@rometools/cli-linux-arm64/11.0.0:
resolution: {integrity: sha512-dktTJJlTpmycBZ2TwhJBcAO8ztK8DdevdyZnFFxdYRvtmJgTjIsC2UFayf/SbKew8B8q1IhI0it+D6ihAeIpeg==}
cpu: [arm64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@rometools/cli-linux-x64/11.0.0:
resolution: {integrity: sha512-WVcnXPNdWGUWo0p4NU8YzuthjYR7q+b4vRcjdxtP1DlpphZmSsoC/RSE85nEqRAz8hChcKUansVzOPM8BSsuGA==}
cpu: [x64]
os: [linux]
requiresBuild: true
dev: true
optional: true
/@rometools/cli-win32-arm64/11.0.0:
resolution: {integrity: sha512-tPj6RThQzS7Q45jqQll7NlTYvNcsg/BEP3LYiiazqSh9FAFnMkrV6ewUcMPKWyAfiyLs7jlz4rRvdNRUSygzfQ==}
cpu: [arm64]
os: [win32]
requiresBuild: true
dev: true
optional: true
/@rometools/cli-win32-x64/11.0.0:
resolution: {integrity: sha512-bmBai8WHxYjsGk1+je7ZTfCUCWq30WJI3pQM8pzTA674lfGTZ9ymJoZwTaIMSO4rL5V9mlO6uLunsBKso9VqOg==}
cpu: [x64]
os: [win32]
requiresBuild: true
dev: true
optional: true
/braces/3.0.2:
resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==}
engines: {node: '>=8'}
@ -341,6 +391,20 @@ packages:
fsevents: 2.3.2
dev: true
/rome/11.0.0:
resolution: {integrity: sha512-rRo6JOwpMLc3OkeTDRXkrmrDqnxDvZ75GS4f0jLDBNmRgDXWbu0F8eVnJoRn+VbK2AE7vWvhVOMBjnWowcopkQ==}
engines: {node: '>=14.*'}
hasBin: true
requiresBuild: true
optionalDependencies:
'@rometools/cli-darwin-arm64': 11.0.0
'@rometools/cli-darwin-x64': 11.0.0
'@rometools/cli-linux-arm64': 11.0.0
'@rometools/cli-linux-x64': 11.0.0
'@rometools/cli-win32-arm64': 11.0.0
'@rometools/cli-win32-x64': 11.0.0
dev: true
/source-map-js/1.0.2:
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
engines: {node: '>=0.10.0'}

9
frontend/rome.json Normal file
View File

@ -0,0 +1,9 @@
{
"$schema": "./node_modules/rome/configuration_schema.json",
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
}
}