Skip to content

Commit

Permalink
chore: upgrade rome to biome
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3S4mur41 authored Oct 5, 2023
1 parent 0f2d68b commit 8dbdb8a
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 125 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{js,cjs,mjs,ts,json}": ["rome format --write", "rome check"],
"*.{js,cjs,mjs,ts,json}": ["biome format --write", "biome check"],
"*.!{js,cjs,mjs,ts,json}": ["prettier --write"]
}
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ dist
.history/
.vscode/

# Extensions covered by Rome
# Extensions covered by Biome
*.js
*.cjs
*.mjs
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#! /usr/bin/env node

import cron from "node-cron";
import yargs from "yargs";
import { hideBin } from "yargs/helpers";
import { init, sync } from "../src/index.mjs";
import cron from "node-cron";

// TODO: check node-cron for recursive solution
// https://www.npmjs.com/package/node-cron
Expand Down
2 changes: 1 addition & 1 deletion rome.json → biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./node_modules/rome/configuration_schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"linter": {
"enabled": true,
"rules": {
Expand Down
206 changes: 97 additions & 109 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 4 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@
"name": "hw2energyid",
"version": "1.3.9",
"description": "A tool to synchronize data from HomeWizard to EnergyID",
"keywords": [
"homewizard",
"homewizard-energy",
"homewizard-p1-meter",
"energyid",
"sync",
"api",
"webhook"
],
"keywords": ["homewizard", "homewizard-energy", "homewizard-p1-meter", "energyid", "sync", "api", "webhook"],
"author": "Michaël Vanderheyden <[email protected]> (https://th3s4mur41.me)",
"license": "MIT",
"homepage": "https://github.com/Th3S4mur41/hw2energyid",
Expand All @@ -32,8 +24,8 @@
"scripts": {
"build": "npm run build:docker",
"build:docker": "docker build --tag hw2energyid .",
"lint": "rome ci . && prettier --check --ignore-unknown .",
"lint:fix": "rome format --write . && rome check --apply . && prettier --write --ignore-unknown .",
"lint": "biome ci . && prettier --check --ignore-unknown .",
"lint:fix": "biome check --apply . && prettier --write --ignore-unknown .",
"prepare": "husky install",
"release": "semantic-release",
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -47,7 +39,7 @@
"husky": "^8.0.3",
"lint-staged": "^14.0.0",
"prettier": "^3.0.0",
"rome": "^12.1.2",
"@biomejs/biome": "1.0.0",
"semantic-release": "^22.0.0"
},
"dependencies": {
Expand Down

0 comments on commit 8dbdb8a

Please sign in to comment.