Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2019-08-21 13:23:06 +0300
committersualko <klaus@jsxc.org>2019-08-21 13:23:06 +0300
commitc471896881de140cb1dbc2fb0963b902abed61db (patch)
treea004d660bfa667ee143c690ca6768e1aa38707d6 /package.json
parenta50cd9cbdd78d1529237f3d6ae36f632cf8c6612 (diff)
chore: add tslint
Diffstat (limited to 'package.json')
-rw-r--r--package.json7
1 files changed, 4 insertions, 3 deletions
diff --git a/package.json b/package.json
index 3f0b1ad..59e1d17 100644
--- a/package.json
+++ b/package.json
@@ -14,12 +14,12 @@
"start": "webpack --mode production",
"dev": "webpack --watch --mode development --config webpack.config.js",
"jsxc": "cd node_modules/jsxc/ && webpack --watch --mode development",
- "fix-typescript-format": "node_modules/.bin/tsfmt -r",
- "checking-typescript-format": "node_modules/.bin/tsfmt --verify"
+ "fix-typescript-format": "tslint -c tslint.json \"ts/**/*.ts\" --fix",
+ "checking-typescript-format": "tslint -c tslint.json \"ts/**/*.ts\""
},
"husky": {
"hooks": {
- "pre-commit": "vendor/bin/php-cs-fixer fix --dry-run && vendor/bin/phpunit -c phpunit.xml",
+ "pre-commit": "yarn checking-typescript-format && vendor/bin/php-cs-fixer fix --dry-run && vendor/bin/phpunit -c phpunit.xml",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS "
}
},
@@ -48,6 +48,7 @@
"dependencies": {
"@jsxc/jsxc": "^4.0.0-beta.4",
"libsignal-protocol": "https://github.com/signalapp/libsignal-protocol-javascript",
+ "tslint": "^5.19.0",
"typescript-formatter": "^7.2.2"
}
}