From 17ad11212ed0845748b6c12a47deef636b801147 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Mon, 9 Nov 2020 12:46:28 +0800 Subject: [PATCH] :construction_worker: add lint script --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3aec35d7..612de7a8 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ }, "scripts": { "dev": "vuepress dev docs", - "build": "vuepress build docs" + "build": "vuepress build docs", + "lint": "npx prettier -c docs/**/* !docs/api/**/*", + "lint:fix": "npx prettier --write docs/**/* !docs/api/**/*" }, "license": "MIT", "devDependencies": {