Add eslint and prettier.

This commit is contained in:
Yang Chen
2019-11-07 01:14:13 +11:00
parent 137c96a972
commit b3b6b3a7f6
8 changed files with 995 additions and 23 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
/**
* Creates and launches a new AVD instance with the specified configurations.
*/
export async function startEmulator(
): Promise<void> {
export async function startEmulator(): Promise<void> {
// TODO
}
-2
View File
@@ -1,5 +1,3 @@
import { isNumber } from "util";
export const MIN_API_LEVEL = 21;
export const VALID_TARGETS: Array<string> = ['default', 'google_apis'];
export const VALID_ABIS: Array<string> = ['x86', 'x86_64'];
+2 -2
View File
@@ -1,5 +1,5 @@
import * as core from '@actions/core';
import { InputOptions } from "@actions/core/lib/core";
import { InputOptions } from '@actions/core/lib/core';
import { installAndroidSdk } from './sdk-installer';
import { checkApiLevel, checkTarget, checkAbi, checkHeadless } from './input-validator';
@@ -11,7 +11,7 @@ async function run() {
}
// API level of the platform and system image
const apiLevel = core.getInput('api-level', <InputOptions>{required: true});
const apiLevel = core.getInput('api-level', { required: true } as InputOptions);
checkApiLevel(apiLevel);
console.log(`API level: ${apiLevel}`);