From cc14106c4551912d6020dca8ae15f96b0baf3ae7 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Mon, 2 Jul 2018 15:44:35 -0600 Subject: [PATCH] Add tslint rule file-header to enforce copyright in TS files (#1396) 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": [] }