From f3ab8f2795e6b0adfe3e657a4e4c3ded027a3f75 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sun, 1 Jul 2018 16:34:51 -0600 Subject: [PATCH] Add tslint rule file-header to enforce copyright in TS files I would like to add a "fix" string which this page says is supported: https://palantir.github.io/tslint/rules/file-header/ But the comment style of the fix doesn't follow our style and is apparently not configurable. ``` /*! * copyright line */ ``` Fix #1394 --- tslint.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tslint.json b/tslint.json index 7e9e54385c..2d0fa1eca2 100644 --- a/tslint.json +++ b/tslint.json @@ -7,7 +7,8 @@ "rules": { "indent": [true, "spaces", 4], "max-classes-per-file": false, - "object-literal-sort-keys": false + "object-literal-sort-keys": false, + "file-header": [true, "Copyright \\(C\\) Microsoft Corporation. All rights reserved."] }, "rulesDirectory": [] }