From 57e8b7064494b47e890046349a36ec44941ebce5 Mon Sep 17 00:00:00 2001 From: Lukas Tetzlaff Date: Thu, 2 Nov 2017 11:19:09 +0100 Subject: [PATCH] Add tslint and tslint-xo See https://github.com/sindresorhus/is/pull/28#issuecomment-341071631 --- package.json | 3 +++ tslint.json | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tslint.json diff --git a/package.json b/package.json index 472b963..1ef5b8b 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "node": ">=4" }, "scripts": { + "lint": "tslint --project .", "test": "tsc && ava dist/tests", "build": "tsc", "prepublish": "tsc" @@ -51,6 +52,8 @@ "@types/node": "^8.0.47", "ava": "*", "jsdom": "^11.3.0", + "tslint": "^5.8.0", + "tslint-xo": "^0.2.0", "typescript": "^2.6.1" } } diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..15a80b2 --- /dev/null +++ b/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "tslint-xo" +} \ No newline at end of file