Skip to content

Commit

Permalink
chore(deps-dev): bump the npm-dev-dependencies group across 1 directo…
Browse files Browse the repository at this point in the history
…ry with 5 updates (#86)

* chore(deps-dev): bump the npm-dev-dependencies group across 1 directory with 5 updates

Bumps the npm-dev-dependencies group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@octokit/types](https://github.com/octokit/types.ts) | `12.6.0` | `13.5.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `7.4.0` | `8.4.0` |
| [eslint](https://github.com/eslint/eslint) | `8.57.0` | `9.9.1` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.1.2` | `29.2.5` |
| [typescript](https://github.com/Microsoft/TypeScript) | `5.4.3` | `5.5.4` |



Updates `@octokit/types` from 12.6.0 to 13.5.0
- [Release notes](https://github.com/octokit/types.ts/releases)
- [Commits](octokit/types.ts@v12.6.0...v13.5.0)

Updates `@typescript-eslint/parser` from 7.4.0 to 8.4.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.4.0/packages/parser)

Updates `eslint` from 8.57.0 to 9.9.1
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.0...v9.9.1)

Updates `ts-jest` from 29.1.2 to 29.2.5
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](kulshekhar/ts-jest@v29.1.2...v29.2.5)

Updates `typescript` from 5.4.3 to 5.5.4
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.4.3...v5.5.4)

---
updated-dependencies:
- dependency-name: "@octokit/types"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm-dev-dependencies
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm-dev-dependencies
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm-dev-dependencies
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dev-dependencies
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dev-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* Use ESLint flat configuration

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Danny Skoog <[email protected]>
  • Loading branch information
dependabot[bot] and dannyskoog authored Sep 4, 2024
1 parent 9605eeb commit d0493c2
Show file tree
Hide file tree
Showing 8 changed files with 974 additions and 507 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

25 changes: 0 additions & 25 deletions .eslintrc

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylisticJs from '@stylistic/eslint-plugin-js'

export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: [
'**/*.?(*)js',
],
},
{
files: ['**/*.ts'],
plugins: {
'@stylistic/js': stylisticJs,
},
rules: {
"@stylistic/js/semi": "error",
"@stylistic/js/comma-dangle": ["error", "always-multiline"],
'@stylistic/js/indent': ['error', 2],
"@stylistic/js/eol-last": "error",
"@stylistic/js/object-curly-spacing": ["error", "always"],
},
},
];
1,407 changes: 936 additions & 471 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"build": "npm run lint && ncc build src/main.ts --source-map --license licenses.txt",
"lint": "eslint 'src/**/*.ts'",
"lint": "eslint",
"test": "jest"
},
"repository": {
Expand All @@ -28,15 +28,16 @@
"@actions/github": "^6.0.0"
},
"devDependencies": {
"@octokit/types": "^12.6.0",
"@octokit/types": "^13.5.0",
"@stylistic/eslint-plugin-js": "^2.7.2",
"@tsconfig/node20": "^20.1.4",
"@types/jest": "^29.5.12",
"@typescript-eslint/parser": "^7.4.0",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0",
"eslint": "^9.9.1",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.3"
"typescript": "^5.5.4",
"typescript-eslint": "^8.4.0"
}
}
2 changes: 1 addition & 1 deletion src/comment/comment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jest.mock('@actions/core', () => ({
}));

jest.mock('@actions/github');
let actionsGithubMock = jest.requireMock('@actions/github');
const actionsGithubMock = jest.requireMock('@actions/github');
actionsGithubMock.getOctoKit = jest.fn(() => mockOctokit);
actionsGithubMock.context = mockContext;

Expand Down
2 changes: 1 addition & 1 deletion src/comment/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createIssueComment, IssueComment, listIssueComments, updateIssueComment

export const postComment = async (token: string, marker: string, message: string) => {
const octokit = github.getOctokit(token);
let { repo: { repo, owner }, issue: { number: prNumber } } = github.context;
const { repo: { repo, owner }, issue: { number: prNumber } } = github.context;

if (isNaN(prNumber)) {
core.setFailed('Pull request number could not be inferred from GitHub context. Please check that the event that triggered the workflow provides it');
Expand Down
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ async function run() {

// Post comment
await postComment(token, marker, message);
} catch (error) {
const message = (error as any).message;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
const message = error.message;
core.setFailed(message);
}
}
Expand Down

0 comments on commit d0493c2

Please sign in to comment.