Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /