Skip to content

Commit

Permalink
prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Apr 29, 2023
1 parent fb8b505 commit c76c93f
Show file tree
Hide file tree
Showing 184 changed files with 1,755 additions and 1,729 deletions.
340 changes: 179 additions & 161 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"doc": "typedoc --name \"Jira.js - Jira Cloud API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bHF.svg",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "ava tests/unit --timeout=2m -с 8",
"test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**/*.test.ts"
"test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**/*.test.ts",
"replacePermissions:version2": "grep -rl \"(#permissions)\" ./src/version2 | xargs sed -i '' 's/(#permissions)/(https:\\/\\/developer.atlassian.com\\/cloud\\/jira\\/platform\\/rest\\/v2\\/intro\\/#permissions)/g'",
"replacePermissions:version3": "grep -rl \"(#permissions)\" ./src/version3 | xargs sed -i '' 's/(#permissions)/(https:\\/\\/developer.atlassian.com\\/cloud\\/jira\\/platform\\/rest\\/v3\\/intro\\/#permissions)/g'"
},
"ava": {
"extensions": [
Expand All @@ -51,32 +53,32 @@
}
},
"devDependencies": {
"@swc-node/register": "^1.6.4",
"@swc/helpers": "^0.5.0",
"@swc-node/register": "^1.6.5",
"@swc/helpers": "^0.5.1",
"@types/express": "^4.17.17",
"@types/node": "^18.15.11",
"@types/node": "^18.16.3",
"@types/oauth": "^0.9.1",
"@types/sinon": "^10.0.14",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"ava": "^5.2.0",
"dotenv": "^16.0.3",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"prettier-plugin-jsdoc": "^0.4.2",
"sinon": "^15.0.3",
"sinon": "^15.0.4",
"ts-node": "^10.9.1",
"typedoc": "^0.24.4",
"typedoc": "^0.24.6",
"typedoc-plugin-extras": "^2.3.3",
"typescript": "^5.0.4"
},
"dependencies": {
"atlassian-jwt": "^2.0.2",
"axios": "^1.3.5",
"axios": "^1.4.0",
"form-data": "^4.0.0",
"oauth": "^0.10.0",
"tslib": "^2.5.0"
Expand Down
4 changes: 2 additions & 2 deletions src/agile/backlog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Backlog {
*/
async moveIssuesToBacklogForBoard<T = void>(
parameters: Parameters.MoveIssuesToBacklogForBoard,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Move issues to the backlog of a particular board (if they are already on that board). This operation is equivalent
Expand All @@ -51,7 +51,7 @@ export class Backlog {
*/
async moveIssuesToBacklogForBoard<T = void>(
parameters: Parameters.MoveIssuesToBacklogForBoard,
callback?: never
callback?: never,
): Promise<T>;
async moveIssuesToBacklogForBoard<T = void>(
parameters: Parameters.MoveIssuesToBacklogForBoard,
Expand Down
58 changes: 29 additions & 29 deletions src/agile/board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class Board {
/** Returns all boards. This only includes boards that the user has permission to view. */
async getAllBoards<T = Models.GetAllBoards>(
parameters: Parameters.GetAllBoards | undefined,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Returns all boards. This only includes boards that the user has permission to view. */
async getAllBoards<T = Models.GetAllBoards>(parameters?: Parameters.GetAllBoards, callback?: never): Promise<T>;
Expand Down Expand Up @@ -117,15 +117,15 @@ export class Board {
*/
async getBoardByFilterId<T = Models.GetBoardByFilterId>(
parameters: Parameters.GetBoardByFilterId,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns any boards which use the provided filter id. This method can be executed by users without a valid software
* license in order to find which boards are using a particular filter.
*/
async getBoardByFilterId<T = Models.GetBoardByFilterId>(
parameters: Parameters.GetBoardByFilterId,
callback?: never
callback?: never,
): Promise<T>;
async getBoardByFilterId<T = Models.GetBoardByFilterId>(
parameters: Parameters.GetBoardByFilterId,
Expand Down Expand Up @@ -186,7 +186,7 @@ export class Board {
*/
async getIssuesForBacklog<T = Models.SearchResults>(
parameters: Parameters.GetIssuesForBacklog,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns all issues from the board's backlog, for the given board ID. This only includes issues that the user has
Expand All @@ -197,7 +197,7 @@ export class Board {
*/
async getIssuesForBacklog<T = Models.SearchResults>(
parameters: Parameters.GetIssuesForBacklog,
callback?: never
callback?: never,
): Promise<T>;
async getIssuesForBacklog<T = Models.SearchResults>(
parameters: Parameters.GetIssuesForBacklog,
Expand Down Expand Up @@ -242,7 +242,7 @@ export class Board {
*/
async getConfiguration<T = Models.GetConfiguration>(
parameters: Parameters.GetConfiguration,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Get the board configuration. The response contains the following fields:
Expand All @@ -267,7 +267,7 @@ export class Board {
*/
async getConfiguration<T = Models.GetConfiguration>(
parameters: Parameters.GetConfiguration,
callback?: never
callback?: never,
): Promise<T>;
async getConfiguration<T = Models.GetConfiguration>(
parameters: Parameters.GetConfiguration,
Expand Down Expand Up @@ -315,7 +315,7 @@ export class Board {
*/
async getIssuesWithoutEpicForBoard<T = Models.SearchResults>(
parameters: Parameters.GetIssuesWithoutEpicForBoard,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns all issues that do not belong to any epic on a board, for a given board ID. This only includes issues that
Expand All @@ -324,7 +324,7 @@ export class Board {
*/
async getIssuesWithoutEpicForBoard<T = Models.SearchResults>(
parameters: Parameters.GetIssuesWithoutEpicForBoard,
callback?: never
callback?: never,
): Promise<T>;
async getIssuesWithoutEpicForBoard<T = Models.SearchResults>(
parameters: Parameters.GetIssuesWithoutEpicForBoard,
Expand Down Expand Up @@ -353,7 +353,7 @@ export class Board {
*/
async getBoardIssuesForEpic<T = Models.SearchResults>(
parameters: Parameters.GetBoardIssuesForEpic,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns all issues that belong to an epic on the board, for the given epic ID and the board ID. This only includes
Expand All @@ -362,7 +362,7 @@ export class Board {
*/
async getBoardIssuesForEpic<T = Models.SearchResults>(
parameters: Parameters.GetBoardIssuesForEpic,
callback?: never
callback?: never,
): Promise<T>;
async getBoardIssuesForEpic<T = Models.SearchResults>(
parameters: Parameters.GetBoardIssuesForEpic,
Expand All @@ -386,11 +386,11 @@ export class Board {

async getFeaturesForBoard<T = Models.GetFeaturesForBoard>(
parameters: Parameters.GetFeaturesForBoard,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async getFeaturesForBoard<T = Models.GetFeaturesForBoard>(
parameters: Parameters.GetFeaturesForBoard,
callback?: never
callback?: never,
): Promise<T>;
async getFeaturesForBoard<T = Models.GetFeaturesForBoard>(
parameters: Parameters.GetFeaturesForBoard,
Expand All @@ -406,7 +406,7 @@ export class Board {

async toggleFeatures<T = Models.ToggleFeatures>(
parameters: Parameters.ToggleFeatures,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async toggleFeatures<T = Models.ToggleFeatures>(parameters: Parameters.ToggleFeatures, callback?: never): Promise<T>;
async toggleFeatures<T = Models.ToggleFeatures>(
Expand All @@ -431,7 +431,7 @@ export class Board {
*/
async getIssuesForBoard<T = Models.SearchResults>(
parameters: Parameters.GetIssuesForBoard,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns all issues from a board, for a given board ID. This only includes issues that the user has permission to
Expand All @@ -442,7 +442,7 @@ export class Board {
*/
async getIssuesForBoard<T = Models.SearchResults>(
parameters: Parameters.GetIssuesForBoard,
callback?: never
callback?: never,
): Promise<T>;
async getIssuesForBoard<T = Models.SearchResults>(
parameters: Parameters.GetIssuesForBoard,
Expand Down Expand Up @@ -511,7 +511,7 @@ export class Board {
*/
async getProjects<T = Paginated<Models.Projects>>(
parameters: Parameters.GetProjects,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns all projects that are associated with the board, for the given board ID. If the user does not have
Expand Down Expand Up @@ -558,7 +558,7 @@ export class Board {
*/
async getProjectsFull<T = Models.Projects[]>(
parameters: Parameters.GetProjectsFull,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns all projects that are statically associated with the board, for the given board ID. Returned projects are
Expand Down Expand Up @@ -590,7 +590,7 @@ export class Board {
*/
async getBoardPropertyKeys<T = unknown>(
parameters: Parameters.GetBoardPropertyKeys,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns the keys of all properties for the board identified by the id. The user who retrieves the property keys is
Expand Down Expand Up @@ -682,12 +682,12 @@ export class Board {
/** Returns all quick filters from a board, for a given board ID. */
async getAllQuickFilters<T = Models.GetAllQuickFilters>(
parameters: Parameters.GetAllQuickFilters,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Returns all quick filters from a board, for a given board ID. */
async getAllQuickFilters<T = Models.GetAllQuickFilters>(
parameters: Parameters.GetAllQuickFilters,
callback?: never
callback?: never,
): Promise<T>;
async getAllQuickFilters<T = Models.GetAllQuickFilters>(
parameters: Parameters.GetAllQuickFilters,
Expand All @@ -711,7 +711,7 @@ export class Board {
*/
async getQuickFilter<T = Models.GetQuickFilter>(
parameters: Parameters.GetQuickFilter,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns the quick filter for a given quick filter ID. The quick filter will only be returned if the user can view
Expand All @@ -732,11 +732,11 @@ export class Board {

async getReportsForBoard<T = Models.GetReportsForBoard>(
parameters: Parameters.GetReportsForBoard,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async getReportsForBoard<T = Models.GetReportsForBoard>(
parameters: Parameters.GetReportsForBoard,
callback?: never
callback?: never,
): Promise<T>;
async getReportsForBoard<T = Models.GetReportsForBoard>(
parameters: Parameters.GetReportsForBoard,
Expand All @@ -756,7 +756,7 @@ export class Board {
*/
async getAllSprints<T = Paginated<Models.Sprint>>(
parameters: Parameters.GetAllSprints,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns all sprints from a board, for a given board ID. This only includes sprints that the user has permission to
Expand Down Expand Up @@ -787,7 +787,7 @@ export class Board {
*/
async getBoardIssuesForSprint<T = unknown>(
parameters: Parameters.GetBoardIssuesForSprint,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Get all issues you have access to that belong to the sprint from the board. Issue returned from this resource
Expand All @@ -796,7 +796,7 @@ export class Board {
*/
async getBoardIssuesForSprint<T = unknown>(
parameters: Parameters.GetBoardIssuesForSprint,
callback?: never
callback?: never,
): Promise<T>;
async getBoardIssuesForSprint<T = unknown>(
parameters: Parameters.GetBoardIssuesForSprint,
Expand Down Expand Up @@ -826,7 +826,7 @@ export class Board {
*/
async getAllVersions<T = Paginated<Models.Version>>(
parameters: Parameters.GetAllVersions,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Returns all versions from a board, for a given board ID. This only includes versions that the user has permission
Expand All @@ -836,7 +836,7 @@ export class Board {
*/
async getAllVersions<T = Paginated<Models.Version>>(
parameters: Parameters.GetAllVersions,
callback?: never
callback?: never,
): Promise<T>;
async getAllVersions<T = Paginated<Models.Version>>(
parameters: Parameters.GetAllVersions,
Expand Down
8 changes: 4 additions & 4 deletions src/agile/builds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Builds {
*/
async submitBuilds<T = Models.SubmitBuilds>(
parameters: Parameters.SubmitBuilds,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Update / insert builds data.
Expand Down Expand Up @@ -82,7 +82,7 @@ export class Builds {
*/
async deleteBuildsByProperty<T = unknown>(
parameters: Parameters.DeleteBuildsByProperty,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Bulk delete all builds data that match the given request.
Expand All @@ -103,7 +103,7 @@ export class Builds {
*/
async deleteBuildsByProperty<T = unknown>(
parameters: Parameters.DeleteBuildsByProperty,
callback?: never
callback?: never,
): Promise<T>;
async deleteBuildsByProperty<T = unknown>(
parameters: Parameters.DeleteBuildsByProperty,
Expand All @@ -130,7 +130,7 @@ export class Builds {
*/
async getBuildByKey<T = Models.GetBuildByKey>(
parameters: Parameters.GetBuildByKey,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* Retrieve the currently stored build data for the given `pipelineId` and `buildNumber` combination.
Expand Down
Loading

0 comments on commit c76c93f

Please sign in to comment.