diff --git a/.drone.yml b/.drone.yml index 9f063bce..2a964a9b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/project/.parcelrc b/project/.parcelrc deleted file mode 100644 index f518152f..00000000 --- a/project/.parcelrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@parcel/config-default", - "transformers": { - "*.pjs": ["@parcel/transformer-js"] - } -} \ No newline at end of file diff --git a/project/Dockerfile b/project/Dockerfile index 7ce530d0..9c98106e 100644 --- a/project/Dockerfile +++ b/project/Dockerfile @@ -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 diff --git a/project/babel.config.js b/project/babel.config.js deleted file mode 100644 index f1023694..00000000 --- a/project/babel.config.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = { - presets: [ - [ - "@babel/preset-env", - { - targets: { - node: "current" - } - } - ], - "@babel/preset-typescript" - ] -}; \ No newline at end of file diff --git a/project/rome.json b/project/biome.json similarity index 93% rename from project/rome.json rename to project/biome.json index c6af5710..ded78fca 100644 --- a/project/rome.json +++ b/project/biome.json @@ -1,5 +1,5 @@ { - "$schema": "./node_modules/rome/configuration_schema.json", + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", "linter": { "enabled": true, "rules": { diff --git a/project/package.json b/project/package.json index b101acf0..77184a9d 100644 --- a/project/package.json +++ b/project/package.json @@ -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",