Linting errors

This commit is contained in:
JamesIves 2020-03-09 09:19:16 -04:00
parent 04a7ff7997
commit 9ce7c5f8d0
4 changed files with 8 additions and 7 deletions

View File

@ -35,7 +35,6 @@
"@typescript-eslint/no-misused-new": "error", "@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error", "@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-assertion": "warn", "@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-object-literal-type-assertion": "error",
"@typescript-eslint/no-unnecessary-qualifier": "error", "@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error", "@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-useless-constructor": "error", "@typescript-eslint/no-useless-constructor": "error",
@ -43,7 +42,6 @@
"@typescript-eslint/prefer-for-of": "warn", "@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-function-type": "warn", "@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/prefer-includes": "error", "@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-interface": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error", "@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/promise-function-async": "error", "@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/require-array-sort-compare": "error", "@typescript-eslint/require-array-sort-compare": "error",

View File

@ -32,7 +32,7 @@ export interface ActionInterface {
isTest?: string | undefined | null isTest?: string | undefined | null
/** The git config name. */ /** The git config name. */
name?: string name?: string
/** The repository path, for example JamesIves/github-pages-deploy-action */ /** The repository path, for example JamesIves/github-pages-deploy-action. */
repositoryName?: string repositoryName?: string
/** The fully qualified repositpory path, this gets auto generated if repositoryName is provided. */ /** The fully qualified repositpory path, this gets auto generated if repositoryName is provided. */
repositoryPath?: string repositoryPath?: string

View File

@ -4,9 +4,9 @@ let output: string
/** Wrapper around the GitHub toolkit exec command which returns the output. /** Wrapper around the GitHub toolkit exec command which returns the output.
* Also allows you to easily toggle the current working directory. * Also allows you to easily toggle the current working directory.
* @param cmd = The command to execute. *
* @param cwd - The current working directory. * @param {string} cmd - The command to execute.
* @returns - The output from the command. * @param {string} cwd - The current working directory.
*/ */
export async function execute(cmd: string, cwd: string): Promise<any> { export async function execute(cmd: string, cwd: string): Promise<any> {
output = '' output = ''

View File

@ -3,7 +3,10 @@ import {action, ActionInterface} from './constants'
import {deploy, generateBranch, init} from './git' import {deploy, generateBranch, init} from './git'
import {generateRepositoryPath, generateTokenType} from './util' import {generateRepositoryPath, generateTokenType} from './util'
/** Initializes and runs the action. */ /** Initializes and runs the action.
*
* @param {object} configuration - The action configuration.
*/
export default async function run( export default async function run(
configuration: ActionInterface configuration: ActionInterface
): Promise<void> { ): Promise<void> {