From 939b620e8e89d8ad2bf727b78fa6d6fbf01b54fa Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 28 Mar 2023 10:25:48 +0200 Subject: [PATCH] feat: Add rome tool --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cc7030d..35b6eb4 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "mini-css-extract-plugin": "^2.5.3", "mocha": "^10.1.0", "nodemon": "^2.0.20", + "rome": "^11.0.0", "standard": "^17.0.0", "style-loader": "^3.3.1", "webpack": "^5.75.0", @@ -43,7 +44,7 @@ "scripts": { "start": "node --experimental-fetch ./", "dev": "LOG_LEVEL=debug yarn run watch & yarn run build:static:dev", - "test": "yarn run standard:check && mocha", + "test": "yarn run standard:check && yarn run rome:check && mocha", "watch": "./node_modules/.bin/nodemon --config nodemon.json ./", "build": "yarn run build:server & yarn run build:static", "build:server": "ncc build ./src/index.js -o dist", @@ -51,6 +52,8 @@ "build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development", "standard:check": "./node_modules/.bin/standard ./src", "standard:fix": "./node_modules/.bin/standard --fix ./src", + "rome:check": "./node_modules/.bin/rome check ./src", + "rome:fix": "./node_modules/.bin/rome check --apply ./src", "license:check": "./node_modules/.bin/license-check-and-add check", "license:add": "./node_modules/.bin/license-check-and-add add", "license:remove": "./node_modules/.bin/license-check-and-add remove"