Remove unused config files + swapped rome for biome (!163)

Removed `parcel` and `babel` config files and dependencies, as the project isn't using these tools anymore.

Swapped `rome` for `biome`, `rome` is archived and won't be receiving updates anymore, `biome` is a community fork.

Co-authored-by: Pedro Silva <sparta14gaming@gmail.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/163
Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
This commit is contained in:
TheSparta 2023-10-31 16:03:45 +00:00 committed by chomp
parent 73a81f954c
commit 35e82fde2c
6 changed files with 9 additions and 30 deletions

View File

@ -27,7 +27,7 @@ steps:
- cd ./project
- pnpm install
- name: Run Rome
- name: Run Biome
image: registry.sp-tarkov.com/spt/pnpm:7.25.1
commands:
- cd ./project
@ -84,7 +84,7 @@ steps:
- cd ./project
- pnpm install
- name: Run Rome
- name: Run Biome
image: registry.sp-tarkov.com/spt/pnpm:7.25.1
commands:
- cd ./project
@ -102,7 +102,7 @@ steps:
# - cd ./project
# - pnpm run test:coverage
# depends_on:
# - Run Rome
# - Run Biome
# when:
# event:
# - push
@ -128,7 +128,7 @@ steps:
-Dsonar.javascript.lcov.reportPaths=./project/coverage/lcov.info
depends_on:
# - Jest coverage
- Run Rome
- Run Biome
when:
event:
- push
@ -165,7 +165,7 @@ steps:
-Dsonar.projectVersion=$DRONE_TAG
depends_on:
# - Jest coverage
- Run Rome
- Run Biome
when:
event:
- tag

View File

@ -1,6 +0,0 @@
{
"extends": "@parcel/config-default",
"transformers": {
"*.pjs": ["@parcel/transformer-js"]
}
}

View File

@ -5,7 +5,7 @@ WORKDIR /app
COPY package.json .
RUN yarn
COPY .parcelrc tsconfig.json tsconfig.base.json ./
COPY tsconfig.json tsconfig.base.json ./
COPY src ./src
RUN yarn test:comp-linux

View File

@ -1,13 +0,0 @@
module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "current"
}
}
],
"@babel/preset-typescript"
]
};

View File

@ -1,5 +1,5 @@
{
"$schema": "./node_modules/rome/configuration_schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"linter": {
"enabled": true,
"rules": {

View File

@ -12,7 +12,7 @@
},
"scripts": {
"check:circular": "madge --circular --extensions ts ./src/",
"lint": "rome ci src --formatter-enabled=false --max-diagnostics=200",
"lint": "biome ci src --formatter-enabled=false --max-diagnostics=200",
"lint:fix": "eslint --fix --ext .ts src/**",
"test:run": "jest --colors --runInBand",
"test:coverage": "jest --coverage --maxWorkers=1 --no-cache",
@ -42,8 +42,7 @@
"ws": "8.14.2"
},
"devDependencies": {
"@babel/preset-env": "7.23.2",
"@babel/preset-typescript": "7.23.2",
"@biomejs/biome": "1.3.3",
"@jest/globals": "29.7.0",
"@pnpm/exe": "8.9.0",
"@swc/cli": "0.1.62",
@ -67,7 +66,6 @@
"pkg": "5.8.1",
"pkg-fetch": "3.5.2",
"resedit": "2.0.0",
"rome": "12.1.3",
"ts-jest": "29.1.1",
"ts-node-dev": "2.0.0",
"tsconfig-paths": "4.2.0",