-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps(Dev): Add eslint-config-noir version 1.1.1 (#79)
* chore: Update ESLint config * deps(Dev): Add eslint-config-noir version 1.1.1 * chore: Update action directory
- Loading branch information
1 parent
1699a85
commit 07ba2b1
Showing
12 changed files
with
133 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
env: | ||
es2021: true | ||
node: true | ||
extends: | ||
- eslint:recommended | ||
- noir | ||
- plugin:@typescript-eslint/recommended | ||
- noir/typescript | ||
parser: '@typescript-eslint/parser' | ||
parserOptions: | ||
project: ./tsconfig.json | ||
ecmaVersion: latest | ||
sourceType: module | ||
plugins: | ||
- '@typescript-eslint' | ||
rules: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.ts text eol=lf | ||
*.js text eol=lf |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,53 @@ | ||
import type { GitHub } from "@actions/github/lib/utils"; | ||
import type { SemVer } from "semver"; | ||
import { GitHub } from "@actions/github/lib/utils"; | ||
import { SemVer } from "semver"; | ||
|
||
export const COMMIT_REGEX = | ||
/^(?<type>[^:()]*)(?:\((?<category>[^()]*?)\)|): *(?<title>.+?) *(?:\(#(?<pr>[1-9]\d*?)\)|) *(?:\[(?<flag>[^[\]]*?)]|)\s*$/; | ||
export const COMMIT_REGEX | ||
= /^(?<type>[^:()]*)(?:\((?<category>[^()]*?)\)|): *(?<title>.+?) *(?:\(#(?<pr>[1-9]\d*?)\)|) *(?:\[(?<flag>[^[\]]*?)]|)\s*$/; | ||
|
||
export interface TypesI { | ||
[type: string]: string; | ||
} | ||
export type TypesI = Record<string, string>; | ||
|
||
export interface LogsI { | ||
[type: string]: { | ||
[category: string]: LogI[]; | ||
}; | ||
} | ||
export type LogsI = Record<string, Record<string, LogI[] | undefined> | undefined>; | ||
|
||
export interface LogI { | ||
title: string; | ||
references: ReferenceI[]; | ||
title: string; | ||
} | ||
|
||
export interface ReferenceI { | ||
author?: string; | ||
author?: string | null; | ||
commit: string; | ||
pr?: string; | ||
} | ||
|
||
export interface TagInputI { | ||
octokit: InstanceType<typeof GitHub>; | ||
owner: string; | ||
prerelease: boolean; | ||
repo: string; | ||
sha: string; | ||
semver: SemVer | null; | ||
prerelease: boolean; | ||
sha: string; | ||
} | ||
|
||
export interface TagResultI { | ||
sha?: string; | ||
name?: string; | ||
sha?: string; | ||
} | ||
|
||
export interface ChangelogInputI { | ||
inputs: ActionInputsI; | ||
octokit: InstanceType<typeof GitHub>; | ||
owner: string; | ||
repo: string; | ||
sha: string; | ||
tagRef?: string; | ||
inputs: ActionInputsI; | ||
} | ||
|
||
export interface ActionInputsI { | ||
commitTypes: TypesI; | ||
defaultCommitType: string; | ||
releaseName: string; | ||
includeCompare: boolean; | ||
mentionAuthors: boolean; | ||
mentionNewContributors: boolean; | ||
includeCompare: boolean; | ||
releaseName: string; | ||
semver: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.