Skip to content

Commit

Permalink
Add tslint rule file-header to enforce copyright in TS files (#1396)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rkeithhill authored and Robert Holt committed Jul 11, 2018
1 parent b024d5a commit cc14106
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
}

0 comments on commit cc14106

Please sign in to comment.