Skip to content

Commit 8d65def

Browse files
rkeithhillTylerLeonhardt
authored andcommitted
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
1 parent ef63eea commit 8d65def

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tslint.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"rules": {
88
"indent": [true, "spaces", 4],
99
"max-classes-per-file": false,
10-
"object-literal-sort-keys": false
10+
"object-literal-sort-keys": false,
11+
"file-header": [true, "Copyright \\(C\\) Microsoft Corporation. All rights reserved."]
1112
},
1213
"rulesDirectory": []
1314
}

0 commit comments

Comments
 (0)