Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 8e61e06

Browse files
committed
Lint code
1 parent bb3e9e2 commit 8e61e06

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gets a token from the environment or a command line argument.
1010

1111
**Parameters**
1212

13-
* `tokenInput?: string | null` - The token input from the command line.
14-
* `environmentVariableName: string"` - The environment variable name to check for a token. Defaults to `GITHUB_TOKEN`.
13+
- `tokenInput?: string | null` - The token input from the command line.
14+
- `environmentVariableName: string"` - The environment variable name to check for a token. Defaults to `GITHUB_TOKEN`.
1515

1616
**Returns**: `string | null` - The token if found, otherwise returns `null`.

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import "dotenv/config";
66
* @param environmentVariableName The name of the environment variable to check.
77
* @returns The token.
88
*/
9-
export default function getToken(tokenInput?: string | null, environmentVariableName = "GITHUB_TOKEN"): string | null {
9+
export default function getToken(
10+
tokenInput?: string | null,
11+
environmentVariableName = "GITHUB_TOKEN"
12+
): string | null {
1013
if (tokenInput) {
1114
return tokenInput;
1215
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"module": "commonjs",
55
"outDir": "dist",
66
"strict": true,
7-
"target": "es2019",
7+
"target": "es2019"
88
},
99
"include": ["src/**/*"]
1010
}

0 commit comments

Comments
 (0)