aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-12-04 08:52:48 -0700
committerLibravatar GitHub <noreply@github.com>2023-12-04 08:52:48 -0700
commit3fc8706007d896dcbde69c0ce924a6a5eb66aba6 (patch)
tree008bbcfc14d819cd2f744eb16607b6aa9c4ad0bf /package.json
parentchore: project maintenance (#1466) (diff)
downloadferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.gz
ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.zst
ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.zip
refactor: implement biome (#1467)
- add `biome.json` - add `biome:check` and `biome:check:fix` commands to `package.json` - add `biome:check:fix` command to run as part of `prepare-code` command - install `@biomejs/biome` dependency - add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions` - fix or comment out various reported lint issues
Diffstat (limited to 'package.json')
-rw-r--r--package.json7
1 files changed, 5 insertions, 2 deletions
diff --git a/package.json b/package.json
index f52cd8163..f2bcd7f18 100644
--- a/package.json
+++ b/package.json
@@ -34,13 +34,15 @@
34 "typecheck": "tsc --noEmit", 34 "typecheck": "tsc --noEmit",
35 "lint": "eslint \"{src,test,scripts}/**/*.{js,jsx,mjs,ts,tsx}\" --quiet", 35 "lint": "eslint \"{src,test,scripts}/**/*.{js,jsx,mjs,ts,tsx}\" --quiet",
36 "lint:fix": "pnpm lint --cache --fix", 36 "lint:fix": "pnpm lint --cache --fix",
37 "biome:check": "pnpm biome check .",
38 "biome:check:fix": "pnpm biome:check --apply-unsafe",
37 "extract": "formatjs extract \"src/**/*.{js,jsx,mjs,ts,tsx}\" --ignore=\"**/*.d.ts\" --out-file temp.json --flatten --id-interpolation-pattern '[sha512:contenthash:base64:6]' --preserve-whitespace", 39 "extract": "formatjs extract \"src/**/*.{js,jsx,mjs,ts,tsx}\" --ignore=\"**/*.d.ts\" --out-file temp.json --flatten --id-interpolation-pattern '[sha512:contenthash:base64:6]' --preserve-whitespace",
38 "compile": "formatjs compile \"temp.json\" --out-file src/i18n/locales/en-US.json", 40 "compile": "formatjs compile \"temp.json\" --out-file src/i18n/locales/en-US.json",
39 "manage-translations": "pnpm extract && pnpm compile && rimraf temp.json", 41 "manage-translations": "pnpm extract && pnpm compile && rimraf temp.json",
40 "build": "preval-build-info-cli && node esbuild.mjs && electron-builder", 42 "build": "preval-build-info-cli && node esbuild.mjs && electron-builder",
41 "contributors": "all-contributors", 43 "contributors": "all-contributors",
42 "reformat-files": "prettier --ignore-path .eslintignore --write --cache \"**/*.{js,jsx,mjs,ts,tsx,scss}\"", 44 "reformat-files": "prettier --ignore-path .eslintignore --write --cache \"**/*.{js,jsx,mjs,ts,tsx,scss}\"",
43 "prepare-code": "pnpm typecheck && pnpm lint:fix && pnpm reformat-files && pnpm manage-translations", 45 "prepare-code": "pnpm typecheck && pnpm lint:fix && pnpm biome:check:fix && pnpm reformat-files && pnpm manage-translations",
44 "link-readme": "ts-node scripts/link-readme.ts", 46 "link-readme": "ts-node scripts/link-readme.ts",
45 "minify-images": "./scripts/minify-images.sh", 47 "minify-images": "./scripts/minify-images.sh",
46 "start:server": "ts-node src/internal-server/test.ts", 48 "start:server": "ts-node src/internal-server/test.ts",
@@ -134,6 +136,7 @@
134 "ws": "8.14.2" 136 "ws": "8.14.2"
135 }, 137 },
136 "devDependencies": { 138 "devDependencies": {
139 "@biomejs/biome": "1.4.1",
137 "@commitlint/cli": "17.7.1", 140 "@commitlint/cli": "17.7.1",
138 "@commitlint/config-conventional": "17.7.0", 141 "@commitlint/config-conventional": "17.7.0",
139 "@electron/notarize": "1.2.3", 142 "@electron/notarize": "1.2.3",
@@ -216,7 +219,7 @@
216 "har-validator": "5.1.5", 219 "har-validator": "5.1.5",
217 "uuid": "3.4.0", 220 "uuid": "3.4.0",
218 "@sinonjs/fake-timers": "10.2.0", 221 "@sinonjs/fake-timers": "10.2.0",
219 "@npmcli/move-file": "1.1.2", 222 "@npmcli/move-file": "1.1.2 || 2.0.1",
220 "source-map-resolve": "0.5.3", 223 "source-map-resolve": "0.5.3",
221 "source-map-url": "0.4.1", 224 "source-map-url": "0.4.1",
222 "resolve-url": "0.2.1", 225 "resolve-url": "0.2.1",