diff options
author | 2023-07-25 09:20:43 -0600 | |
---|---|---|
committer | 2023-07-26 16:28:22 +0000 | |
commit | 4bd3d6764bfd48c881d9722825309ddb5956c758 (patch) | |
tree | 53296e94d91ab2cdc57c4d32a1fbcee071ae7923 /package.json | |
parent | chore: upgrade @octokit/core to latest (diff) | |
download | ferdium-app-4bd3d6764bfd48c881d9722825309ddb5956c758.tar.gz ferdium-app-4bd3d6764bfd48c881d9722825309ddb5956c758.tar.zst ferdium-app-4bd3d6764bfd48c881d9722825309ddb5956c758.zip |
style: reformat all files properly
- remove .json from .eslintignore
- add type intellisense to .prettierrc.js
- install missing @jest/types which is used in jest.config.js
- split up typecheck and lint into two separate commands
- remove --require-pragma flag from reformat-files which leads to unformatted files
- install suggested @types/prop-types and @types/react-loader dependencies
- add @ts-expect-error to Loader usages
- reformat all scss files automatically with reformat-files command
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/package.json b/package.json index 049bb69ee..7a950caf7 100644 --- a/package.json +++ b/package.json | |||
@@ -30,15 +30,16 @@ | |||
30 | "dev": "node esbuild.mjs --watch", | 30 | "dev": "node esbuild.mjs --watch", |
31 | "test": "jest", | 31 | "test": "jest", |
32 | "test:watch": "jest --watch", | 32 | "test:watch": "jest --watch", |
33 | "lint": "tsc --noEmit && eslint \"{src,test,scripts}/**/*.{js,jsx,mjs,ts,tsx}\"", | 33 | "typecheck": "tsc --noEmit", |
34 | "lint": "eslint \"{src,test,scripts}/**/*.{js,jsx,mjs,ts,tsx}\"", | ||
34 | "lint:fix": "eslint --fix \"{src,test,scripts}/**/*.{js,jsx,mjs,ts,tsx}\"", | 35 | "lint:fix": "eslint --fix \"{src,test,scripts}/**/*.{js,jsx,mjs,ts,tsx}\"", |
35 | "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", | 36 | "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", |
36 | "compile": "formatjs compile \"temp.json\" --out-file src/i18n/locales/en-US.json", | 37 | "compile": "formatjs compile \"temp.json\" --out-file src/i18n/locales/en-US.json", |
37 | "manage-translations": "pnpm extract && pnpm compile && rimraf temp.json", | 38 | "manage-translations": "pnpm extract && pnpm compile && rimraf temp.json", |
38 | "build": "preval-build-info-cli && node esbuild.mjs && electron-builder", | 39 | "build": "preval-build-info-cli && node esbuild.mjs && electron-builder", |
39 | "contributors": "all-contributors", | 40 | "contributors": "all-contributors", |
40 | "reformat-files": "prettier --ignore-path .eslintignore --write --require-pragma \"**/*.{js,jsx,mjs,ts,tsx,scss}\"", | 41 | "reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,mjs,ts,tsx,scss}\"", |
41 | "prepare-code": "pnpm lint:fix && pnpm reformat-files && pnpm manage-translations", | 42 | "prepare-code": "pnpm typecheck && pnpm lint:fix && pnpm reformat-files && pnpm manage-translations", |
42 | "link-readme": "ts-node scripts/link-readme.ts", | 43 | "link-readme": "ts-node scripts/link-readme.ts", |
43 | "minify-images": "./scripts/minify-images.sh", | 44 | "minify-images": "./scripts/minify-images.sh", |
44 | "start:server": "ts-node src/internal-server/test.ts", | 45 | "start:server": "ts-node src/internal-server/test.ts", |
@@ -133,6 +134,7 @@ | |||
133 | "@commitlint/config-conventional": "17.6.7", | 134 | "@commitlint/config-conventional": "17.6.7", |
134 | "@electron/notarize": "1.2.3", | 135 | "@electron/notarize": "1.2.3", |
135 | "@formatjs/cli": "6.1.3", | 136 | "@formatjs/cli": "6.1.3", |
137 | "@jest/types": "29.6.1", | ||
136 | "@types/color": "3.0.3", | 138 | "@types/color": "3.0.3", |
137 | "@types/expect.js": "0.3.29", | 139 | "@types/expect.js": "0.3.29", |
138 | "@types/fs-extra": "11.0.1", | 140 | "@types/fs-extra": "11.0.1", |
@@ -140,8 +142,10 @@ | |||
140 | "@types/lodash": "4.14.195", | 142 | "@types/lodash": "4.14.195", |
141 | "@types/ms": "0.7.31", | 143 | "@types/ms": "0.7.31", |
142 | "@types/node": "18.15.3", | 144 | "@types/node": "18.15.3", |
145 | "@types/prop-types": "15.7.5", | ||
143 | "@types/react": "18.2.12", | 146 | "@types/react": "18.2.12", |
144 | "@types/react-dom": "18.2.5", | 147 | "@types/react-dom": "18.2.5", |
148 | "@types/react-loader": "2.4.5", | ||
145 | "@types/react-transition-group": "4.4.6", | 149 | "@types/react-transition-group": "4.4.6", |
146 | "@types/route-parser": "0.1.4", | 150 | "@types/route-parser": "0.1.4", |
147 | "@types/tar": "6.1.5", | 151 | "@types/tar": "6.1.5", |