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:
parent
73a81f954c
commit
35e82fde2c
10
.drone.yml
10
.drone.yml
@ -27,7 +27,7 @@ steps:
|
|||||||
- cd ./project
|
- cd ./project
|
||||||
- pnpm install
|
- pnpm install
|
||||||
|
|
||||||
- name: Run Rome
|
- name: Run Biome
|
||||||
image: registry.sp-tarkov.com/spt/pnpm:7.25.1
|
image: registry.sp-tarkov.com/spt/pnpm:7.25.1
|
||||||
commands:
|
commands:
|
||||||
- cd ./project
|
- cd ./project
|
||||||
@ -84,7 +84,7 @@ steps:
|
|||||||
- cd ./project
|
- cd ./project
|
||||||
- pnpm install
|
- pnpm install
|
||||||
|
|
||||||
- name: Run Rome
|
- name: Run Biome
|
||||||
image: registry.sp-tarkov.com/spt/pnpm:7.25.1
|
image: registry.sp-tarkov.com/spt/pnpm:7.25.1
|
||||||
commands:
|
commands:
|
||||||
- cd ./project
|
- cd ./project
|
||||||
@ -102,7 +102,7 @@ steps:
|
|||||||
# - cd ./project
|
# - cd ./project
|
||||||
# - pnpm run test:coverage
|
# - pnpm run test:coverage
|
||||||
# depends_on:
|
# depends_on:
|
||||||
# - Run Rome
|
# - Run Biome
|
||||||
# when:
|
# when:
|
||||||
# event:
|
# event:
|
||||||
# - push
|
# - push
|
||||||
@ -128,7 +128,7 @@ steps:
|
|||||||
-Dsonar.javascript.lcov.reportPaths=./project/coverage/lcov.info
|
-Dsonar.javascript.lcov.reportPaths=./project/coverage/lcov.info
|
||||||
depends_on:
|
depends_on:
|
||||||
# - Jest coverage
|
# - Jest coverage
|
||||||
- Run Rome
|
- Run Biome
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
@ -165,7 +165,7 @@ steps:
|
|||||||
-Dsonar.projectVersion=$DRONE_TAG
|
-Dsonar.projectVersion=$DRONE_TAG
|
||||||
depends_on:
|
depends_on:
|
||||||
# - Jest coverage
|
# - Jest coverage
|
||||||
- Run Rome
|
- Run Biome
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "@parcel/config-default",
|
|
||||||
"transformers": {
|
|
||||||
"*.pjs": ["@parcel/transformer-js"]
|
|
||||||
}
|
|
||||||
}
|
|
@ -5,7 +5,7 @@ WORKDIR /app
|
|||||||
COPY package.json .
|
COPY package.json .
|
||||||
RUN yarn
|
RUN yarn
|
||||||
|
|
||||||
COPY .parcelrc tsconfig.json tsconfig.base.json ./
|
COPY tsconfig.json tsconfig.base.json ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
RUN yarn test:comp-linux
|
RUN yarn test:comp-linux
|
||||||
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [
|
|
||||||
[
|
|
||||||
"@babel/preset-env",
|
|
||||||
{
|
|
||||||
targets: {
|
|
||||||
node: "current"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"@babel/preset-typescript"
|
|
||||||
]
|
|
||||||
};
|
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/rome/configuration_schema.json",
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||||
"linter": {
|
"linter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"rules": {
|
"rules": {
|
@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"check:circular": "madge --circular --extensions ts ./src/",
|
"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/**",
|
"lint:fix": "eslint --fix --ext .ts src/**",
|
||||||
"test:run": "jest --colors --runInBand",
|
"test:run": "jest --colors --runInBand",
|
||||||
"test:coverage": "jest --coverage --maxWorkers=1 --no-cache",
|
"test:coverage": "jest --coverage --maxWorkers=1 --no-cache",
|
||||||
@ -42,8 +42,7 @@
|
|||||||
"ws": "8.14.2"
|
"ws": "8.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-env": "7.23.2",
|
"@biomejs/biome": "1.3.3",
|
||||||
"@babel/preset-typescript": "7.23.2",
|
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "29.7.0",
|
||||||
"@pnpm/exe": "8.9.0",
|
"@pnpm/exe": "8.9.0",
|
||||||
"@swc/cli": "0.1.62",
|
"@swc/cli": "0.1.62",
|
||||||
@ -67,7 +66,6 @@
|
|||||||
"pkg": "5.8.1",
|
"pkg": "5.8.1",
|
||||||
"pkg-fetch": "3.5.2",
|
"pkg-fetch": "3.5.2",
|
||||||
"resedit": "2.0.0",
|
"resedit": "2.0.0",
|
||||||
"rome": "12.1.3",
|
|
||||||
"ts-jest": "29.1.1",
|
"ts-jest": "29.1.1",
|
||||||
"ts-node-dev": "2.0.0",
|
"ts-node-dev": "2.0.0",
|
||||||
"tsconfig-paths": "4.2.0",
|
"tsconfig-paths": "4.2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user