style: Set bracketSpacing to true

pull/10/head
Edmund Miller 2 years ago committed by Thomas A. Christensen II
parent 7c79f790e0
commit 981cd4fc2e

@ -15,7 +15,7 @@
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{"accessibility": "no-public"}
{ "accessibility": "no-public" }
],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/array-type": "error",
@ -25,7 +25,7 @@
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{"allowExpressions": true}
{ "allowExpressions": true }
],
"@typescript-eslint/func-call-spacing": ["error", "never"],
"@typescript-eslint/no-array-constructor": "error",

@ -5,6 +5,6 @@
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"bracketSpacing": true,
"arrowParens": "avoid"
}

@ -1,11 +1,11 @@
import * as core from '@actions/core'
import * as fs from 'fs'
import * as tc from '@actions/tool-cache'
import {GitHub} from '@actions/github/lib/utils'
import { GitHub } from '@actions/github/lib/utils'
import retry from 'async-retry'
import semver from 'semver'
const NEXTFLOW_REPO = {owner: 'nextflow-io', repo: 'nextflow'}
const NEXTFLOW_REPO = { owner: 'nextflow-io', repo: 'nextflow' }
// HACK Private but I want to test this
export async function all_nf_releases(
@ -22,7 +22,7 @@ export async function all_nf_releases(
export async function latest_stable_release_data(
ok: InstanceType<typeof GitHub>
): Promise<object> {
const {data: stable_release} = await ok.rest.repos.getLatestRelease(
const { data: stable_release } = await ok.rest.repos.getLatestRelease(
NEXTFLOW_REPO
)

@ -2,9 +2,9 @@ import * as core from '@actions/core'
import * as exec from '@actions/exec'
import * as fs from 'fs'
import * as github from '@actions/github'
import {GitHub} from '@actions/github/lib/utils'
import { GitHub } from '@actions/github/lib/utils'
import * as tc from '@actions/tool-cache'
import {install_nextflow, nextflow_bin_url, release_data} from './functions'
import { install_nextflow, nextflow_bin_url, release_data } from './functions'
async function run(): Promise<void> {
// Set environment variables
@ -69,7 +69,7 @@ async function run(): Promise<void> {
nf_path = await tc.cacheDir(nf_install_path, 'nextflow', resolved_version)
core.debug(`Added Nextflow to cache: ${nf_path}`)
fs.rmdirSync(nf_install_path, {recursive: true})
fs.rmdirSync(nf_install_path, { recursive: true })
} else {
core.debug(`Using cached version of Nextflow: ${nf_path}`)
}

@ -1,8 +1,8 @@
import * as functions from '../src/functions'
import {getToken} from './utils'
import { getToken } from './utils'
import * as github from '@actions/github'
import {GitHub} from '@actions/github/lib/utils'
import anyTest, {TestFn} from 'ava' // eslint-disable-line import/no-unresolved
import { GitHub } from '@actions/github/lib/utils'
import anyTest, { TestFn } from 'ava' // eslint-disable-line import/no-unresolved
const test = anyTest as TestFn<{
token: string
@ -12,7 +12,10 @@ const test = anyTest as TestFn<{
test.before(t => {
const first = true
const current_token = getToken(first)
t.context = {token: current_token, octokit: github.getOctokit(current_token)}
t.context = {
token: current_token,
octokit: github.getOctokit(current_token)
}
})
test('all_nf_releases', async t => {

@ -1,8 +1,8 @@
import * as github from '@actions/github'
import {release_data} from '../src/functions'
import {getToken} from './utils'
import {GitHub} from '@actions/github/lib/utils'
import anyTest, {TestFn} from 'ava' // eslint-disable-line import/no-unresolved
import { release_data } from '../src/functions'
import { getToken } from './utils'
import { GitHub } from '@actions/github/lib/utils'
import anyTest, { TestFn } from 'ava' // eslint-disable-line import/no-unresolved
const test = anyTest as TestFn<{
token: string
@ -12,7 +12,10 @@ const test = anyTest as TestFn<{
test.before(t => {
const first = true
const current_token = getToken(first)
t.context = {token: current_token, octokit: github.getOctokit(current_token)}
t.context = {
token: current_token,
octokit: github.getOctokit(current_token)
}
})
const macro = test.macro(async (t, version: string, expected: string) => {

Loading…
Cancel
Save