Skip to content

Commit b0b729a

Browse files
committed
Enforce copyright header with ESLint
1 parent 82d25f0 commit b0b729a

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.eslintrc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"sourceType": "module"
1515
},
1616
"plugins": [
17-
"@typescript-eslint"
17+
"@typescript-eslint",
18+
"header"
1819
],
1920
"rules": {
2021
"indent": [
@@ -37,6 +38,15 @@
3738
{
3839
"argsIgnorePattern": "^_"
3940
}
41+
],
42+
"header/header": [
43+
2,
44+
"line",
45+
[
46+
" Copyright (c) Microsoft Corporation.",
47+
" Licensed under the MIT License."
48+
],
49+
2
4050
]
4151
}
4252
}

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"@vscode/test-electron": "~2.1.5",
7272
"esbuild": "^0.15.11",
7373
"eslint": "^8.25.0",
74+
"eslint-plugin-header": "^3.1.1",
7475
"glob": "^8.0.3",
7576
"mocha": "~10.1.0",
7677
"mocha-multi-reporters": "~1.5.1",

0 commit comments

Comments
 (0)