Skip to content

Commit

Permalink
fix: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF committed Jun 7, 2023
1 parent f0dd1d7 commit 4ef03ac
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": "tsc",
"coverage": "vitest run --coverage",
"format": "prettier --write .",
"lint": "eslint src/**/*.ts",
"lint": "eslint src",
"package": "ncc build src/main.ts --source-map --license licenses.txt",
"prepare": "husky install",
"test": "vitest"
Expand Down
3 changes: 2 additions & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { context } from '@actions/github'
import { filterSupportedFiles } from './options/filterSupportedFiles'
import { formatFocusOption } from './options/formatFocusOption'
import { getConfigFilePath } from './options/getConfigFilePath'
import { Options, validateOptions } from './options/validateOptions'
import type { Options } from './options/validateOptions'
import { validateOptions } from './options/validateOptions'

const getSha = (): string =>
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
Expand Down
2 changes: 1 addition & 1 deletion src/report/body/reportBody.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { uniqueTag } from './uniqueTag'

type Params = {
interface Params {
owner: string
repo: string
issueNumber: number
Expand Down
2 changes: 1 addition & 1 deletion src/report/body/uniqueTag.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createHash } from 'crypto'

type Context = {
interface Context {
owner: string
repo: string
issueNumber: number
Expand Down
4 changes: 2 additions & 2 deletions src/runDepcruise.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { exec } from '@actions/exec'

type Options = {
interface Options {
targetFiles: string
focus: string
depcruiseConfigFilePath: string
cruiseScript: string
}

type DepcruiseResult = {
interface DepcruiseResult {
cmdText: string
mermaidText: string
}
Expand Down
2 changes: 1 addition & 1 deletion src/type.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { getOctokit } from '@actions/github'
import type { getOctokit } from '@actions/github'

export type Octokit = ReturnType<typeof getOctokit>

0 comments on commit 4ef03ac

Please sign in to comment.