Skip to content

Commit 73d7809

Browse files
committed
Add an ESLint configuration
This allows for convenient tab completion in VS Code, adapted from https://github.com/git-for-windows/gfw-helper-github-app/blob/main/.eslintrc.json Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8e169c9 commit 73d7809

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.eslintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"es6": true,
5+
"jest/globals": true
6+
},
7+
"extends": "eslint:recommended",
8+
"parserOptions": {
9+
"ecmaVersion": 12,
10+
"sourceType": "module"
11+
},
12+
"plugins": [
13+
"jest"
14+
],
15+
"root": true,
16+
"rules": {
17+
"indent": ["error", 4],
18+
"no-trailing-spaces": "error"
19+
}
20+
}

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"azureFunctions.deploySubpath": ".",
33
"azureFunctions.projectLanguage": "JavaScript",
44
"azureFunctions.projectRuntime": "~4",
5-
"debug.internalConsoleOptions": "neverOpen"
5+
"debug.internalConsoleOptions": "neverOpen",
6+
"eslint.workingDirectories": [
7+
"GitGitGadget"
8+
]
69
}

GitGitGadget/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-check
21
/*
32
* This is the Azure Function backing the GitGitGadget GitHub App.
43
*

0 commit comments

Comments
 (0)