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