From b315f72f7c7f7ba785ef9a82706444262ba23821 Mon Sep 17 00:00:00 2001 From: Bakhtier Gaibulloev Date: Wed, 4 Jun 2025 10:06:36 +0200 Subject: [PATCH] Add lint script and update docs --- README.md | 9 +++++++++ package.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a5f20fa..e82a0d2 100644 --- a/README.md +++ b/README.md @@ -507,3 +507,12 @@ hooks with the following command: ```bash git config core.hooksPath .githooks ``` + +## Development + +Install dependencies before running lint or tests: + +```bash +npm install +npm run lint +``` diff --git a/package.json b/package.json index 8076360..e0dc561 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "test": "mocha dist/tests/**/*.spec.js --reporter spec", "test_watch": "tsc && mocha dist/tests/**/*.spec.js --reporter spec --watch", "cover": "istanbul cover node_modules/mocha/bin/_mocha dist/tests/**/*.spec.js -- -R spec", - "cover:nyx": "nyc npm test" + "cover:nyx": "nyc npm test", + "lint": "tslint -c tslint.json -p tsconfig.json" }, "repository": { "type": "git",