diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 439ccd5b5f..b04681624f 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -3,6 +3,6 @@ "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "eamodio.gitlens", - "streetsidesoftware.code-spell-checker", + "streetsidesoftware.code-spell-checker" ] } diff --git a/.vscode/launch.json b/.vscode/launch.json index 171e54aae2..708ac0f6e6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -25,5 +25,6 @@ "outputCapture": "std", "skipFiles": ["/**/*.js"] // "smartStep": true - }] + } + ] } diff --git a/package.json b/package.json index 1962cdd94b..7e0b9105d5 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build:main": "tsc -p tsconfig.json", "build:module": "tsc -p tsconfig.module.json", "fix": "run-s fix:*", - "fix:prettier": "prettier \"src/**/*.ts\" --write", + "fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --write", "fix:lint": "eslint src --ext .ts --fix", "pretest": "run-s pretest:*", "pretest:1-init-git-submodules": "[ -f './nim-waku/build/wakunode2' ] || git submodule update --init --recursive", @@ -22,7 +22,7 @@ "chat": "ts-node src/chat/index.ts", "test": "run-s build test:*", "test:lint": "eslint src --ext .ts", - "test:prettier": "prettier \"src/**/*.ts\" --list-different", + "test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", "test:unit": "nyc --silent mocha --exit # TODO: Remove `--exit` and fix hanging processes", "proto": "run-s proto:*", diff --git a/tsconfig.module.json b/tsconfig.module.json index dfb74fa3a3..79be3a5c40 100644 --- a/tsconfig.module.json +++ b/tsconfig.module.json @@ -5,7 +5,5 @@ "outDir": "build/module", "module": "esnext" }, - "exclude": [ - "node_modules/**" - ] + "exclude": ["node_modules/**"] } diff --git a/web-chat/package.json b/web-chat/package.json index d24b47d8c8..f70a570cc6 100644 --- a/web-chat/package.json +++ b/web-chat/package.json @@ -35,9 +35,9 @@ "fix": "run-s fix:*", "test": "run-s build test:*", "test:lint": "eslint src --ext .ts --ext .tsx", - "test:prettier": "prettier \"src/**/*.{ts,tsx}\" --list-different", + "test:prettier": "prettier \"src/**/*.{ts,tsx}\" \"./*.json\" --list-different", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.{ts,tsx},public/**/*.html}\"", - "fix:prettier": "prettier \"src/**/*.{ts,tsx}\" --write", + "fix:prettier": "prettier \"src/**/*.{ts,tsx}\" \"./*.json\" --write", "fix:lint": "eslint src --ext .ts --ext .tsx --fix", "js-waku:build": "cd ../; npm run build", "predeploy": "run-s js-waku:build build",