generated from js-templates/typescript-library
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from release-kit/feat/update-to-v2
Update to v2
- Loading branch information
Showing
14 changed files
with
1,798 additions
and
787 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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
const { configure, presets } = require('eslint-kit') | ||
|
||
module.exports = configure({ | ||
allowDebug: process.env.NODE_ENV !== 'production', | ||
|
||
presets: [ | ||
presets.typescript(), | ||
presets.prettier(), | ||
presets.imports(), | ||
presets.node(), | ||
presets.alias(), | ||
presets.prettier(), | ||
presets.typescript(), | ||
], | ||
}) |
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`getOptions empty inputs 1`] = ` | ||
Object { | ||
"fallback": "v0.1.0", | ||
"pattern": "^v?(.*)$", | ||
"source": "workflow-tag", | ||
} | ||
`; | ||
|
||
exports[`getOptions good fallback 1`] = ` | ||
Object { | ||
"fallback": "v1.0.0", | ||
"pattern": "^v?(.*)$", | ||
"source": "workflow-tag", | ||
} | ||
`; | ||
|
||
exports[`getOptions good pattern 1`] = ` | ||
Object { | ||
"fallback": "v0.1.0", | ||
"pattern": "^.*$", | ||
"source": "workflow-tag", | ||
} | ||
`; | ||
|
||
exports[`getOptions invalid fallback 1`] = ` | ||
"[ | ||
{ | ||
\\"code\\": \\"too_small\\", | ||
\\"minimum\\": 1, | ||
\\"type\\": \\"string\\", | ||
\\"inclusive\\": true, | ||
\\"exact\\": false, | ||
\\"message\\": \\"String must contain at least 1 character(s)\\", | ||
\\"path\\": [ | ||
\\"fallback\\" | ||
] | ||
} | ||
]" | ||
`; | ||
|
||
exports[`getOptions invalid pattern 1`] = ` | ||
"[ | ||
{ | ||
\\"code\\": \\"custom\\", | ||
\\"message\\": \\"Invalid input\\", | ||
\\"path\\": [ | ||
\\"pattern\\" | ||
] | ||
} | ||
]" | ||
`; | ||
|
||
exports[`getOptions latest tag source 1`] = ` | ||
Object { | ||
"fallback": "v0.1.0", | ||
"pattern": "^v?(.*)$", | ||
"source": "latest-tag", | ||
} | ||
`; | ||
|
||
exports[`getOptions only string input 1`] = ` | ||
Object { | ||
"fallback": "v0.1.0", | ||
"pattern": "^v?(.*)$", | ||
"source": "string", | ||
"string": "v1.0.0", | ||
} | ||
`; | ||
|
||
exports[`getOptions string input with correct source 1`] = ` | ||
Object { | ||
"fallback": "v0.1.0", | ||
"pattern": "^v?(.*)$", | ||
"source": "string", | ||
"string": "v1.0.0", | ||
} | ||
`; | ||
|
||
exports[`getOptions workflow tag source 1`] = ` | ||
Object { | ||
"fallback": "v0.1.0", | ||
"pattern": "^v?(.*)$", | ||
"source": "workflow-tag", | ||
} | ||
`; | ||
|
||
exports[`getOptions workflow tag source 2`] = ` | ||
Object { | ||
"fallback": "v0.1.0", | ||
"pattern": "^v?(.*)$", | ||
"source": "workflow-tag", | ||
} | ||
`; |
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,6 @@ | ||
declare namespace NodeJS { | ||
export interface ProcessEnv { | ||
GITHUB_REF_NAME: string | ||
GITHUB_REF_TYPE: string | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.