Format json files

This commit is contained in:
Franck Royer 2021-05-03 15:25:53 +10:00
parent 46f838b379
commit 3c8a63cfcd
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
5 changed files with 8 additions and 9 deletions

View File

@ -3,6 +3,6 @@
"dbaeumer.vscode-eslint", "dbaeumer.vscode-eslint",
"esbenp.prettier-vscode", "esbenp.prettier-vscode",
"eamodio.gitlens", "eamodio.gitlens",
"streetsidesoftware.code-spell-checker", "streetsidesoftware.code-spell-checker"
] ]
} }

3
.vscode/launch.json vendored
View File

@ -25,5 +25,6 @@
"outputCapture": "std", "outputCapture": "std",
"skipFiles": ["<node_internals>/**/*.js"] "skipFiles": ["<node_internals>/**/*.js"]
// "smartStep": true // "smartStep": true
}] }
]
} }

View File

@ -13,7 +13,7 @@
"build:main": "tsc -p tsconfig.json", "build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json", "build:module": "tsc -p tsconfig.module.json",
"fix": "run-s fix:*", "fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" --write", "fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --write",
"fix:lint": "eslint src --ext .ts --fix", "fix:lint": "eslint src --ext .ts --fix",
"pretest": "run-s pretest:*", "pretest": "run-s pretest:*",
"pretest:1-init-git-submodules": "[ -f './nim-waku/build/wakunode2' ] || git submodule update --init --recursive", "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", "chat": "ts-node src/chat/index.ts",
"test": "run-s build test:*", "test": "run-s build test:*",
"test:lint": "eslint src --ext .ts", "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:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
"test:unit": "nyc --silent mocha --exit # TODO: Remove `--exit` and fix hanging processes", "test:unit": "nyc --silent mocha --exit # TODO: Remove `--exit` and fix hanging processes",
"proto": "run-s proto:*", "proto": "run-s proto:*",

View File

@ -5,7 +5,5 @@
"outDir": "build/module", "outDir": "build/module",
"module": "esnext" "module": "esnext"
}, },
"exclude": [ "exclude": ["node_modules/**"]
"node_modules/**"
]
} }

View File

@ -35,9 +35,9 @@
"fix": "run-s fix:*", "fix": "run-s fix:*",
"test": "run-s build test:*", "test": "run-s build test:*",
"test:lint": "eslint src --ext .ts --ext .tsx", "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}\"", "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", "fix:lint": "eslint src --ext .ts --ext .tsx --fix",
"js-waku:build": "cd ../; npm run build", "js-waku:build": "cd ../; npm run build",
"predeploy": "run-s js-waku:build build", "predeploy": "run-s js-waku:build build",