From 341dfe8371d6814f4182319567fcdded5c6d26aa Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:38:22 -0600 Subject: [PATCH] chore(deps): update dependency prettier to v3.1.0 (#633) * chore(deps): update dependency prettier to v3.1.0 * fixes linting issues --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com> --- .github/pull_request_template.md | 14 +++++--- .github/renovate.json | 4 +-- .github/workflows/codeql.yml | 59 ++++++++++++++++---------------- CODE_OF_CONDUCT.md | 20 +++++------ SECURITY.md | 3 +- package-lock.json | 8 ++--- package.json | 2 +- scripts/build.mjs | 4 +-- src/types.ts | 6 ++-- test/tsconfig.test.json | 4 +-- 10 files changed, 61 insertions(+), 63 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 0aa1f03b6..98422f3ac 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,24 +1,29 @@ + Resolves #ISSUE_NUMBER ----- +--- ### Before the change? + -* +- ### After the change? + -* +- ### Pull request checklist + - [ ] Tests for the changes have been added (for bug fixes / features) - [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features) ### Does this introduce a breaking change? + Please see our docs on [breaking changes](https://github.com/octokit/.github/blob/master/community/breaking_changes.md) to help! @@ -26,5 +31,4 @@ Please see our docs on [breaking changes](https://github.com/octokit/.github/blo - [ ] Yes - [ ] No ----- - +--- diff --git a/.github/renovate.json b/.github/renovate.json index dd7a80645..c7db7f62e 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,5 +1,3 @@ { - "extends": [ - "github>octokit/.github" - ] + "extends": ["github>octokit/.github"] } diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 5344965d5..606d88183 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,12 +13,12 @@ name: "CodeQL" on: push: - branches: [ "main" ] + branches: ["main"] pull_request: # The branches below must be a subset of the branches above - branches: [ "main" ] + branches: ["main"] schedule: - - cron: '30 23 * * 2' + - cron: "30 23 * * 2" jobs: analyze: @@ -32,41 +32,40 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'typescript', 'javascript' ] + language: ["typescript", "javascript"] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 # tag=v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 # tag=v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 # tag=v2 - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 # tag=v2 + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 # tag=v2 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 # tag=v2 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 8124607bc..cd02cdb91 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo Examples of behavior that contributes to creating a positive environment include: -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members Examples of unacceptable behavior by participants include: -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting +- The use of sexualized language or imagery and unwelcome sexual attention or advances +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic address, without explicit permission +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities diff --git a/SECURITY.md b/SECURITY.md index 0605b07db..4b7f6d06b 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -4,8 +4,7 @@ Thanks for helping make GitHub Open Source Software safe for everyone. GitHub takes the security of our software products and services seriously, including all of the open source code repositories managed through our GitHub organizations, such as [Octokit](https://github.com/octokit). -Even though [open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we want to make sure that your finding gets passed along to the maintainers of this project for remediation. - +Even though [open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we want to make sure that your finding gets passed along to the maintainers of this project for remediation. ## Reporting a Vulnerability diff --git a/package-lock.json b/package-lock.json index 05a2506ba..ae29373b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "http-proxy-agent": "^7.0.0", "jest": "^29.0.0", "lolex": "^6.0.0", - "prettier": "3.0.3", + "prettier": "3.1.0", "proxy": "^2.0.0", "semantic-release": "^22.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", @@ -11051,9 +11051,9 @@ } }, "node_modules/prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" diff --git a/package.json b/package.json index ce544afa5..b66064fa4 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "http-proxy-agent": "^7.0.0", "jest": "^29.0.0", "lolex": "^6.0.0", - "prettier": "3.0.3", + "prettier": "3.1.0", "proxy": "^2.0.0", "semantic-release": "^22.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", diff --git a/scripts/build.mjs b/scripts/build.mjs index 7c4257c27..2a9f9db26 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -85,8 +85,8 @@ async function main() { sideEffects: false, }, null, - 2 - ) + 2, + ), ); } main(); diff --git a/src/types.ts b/src/types.ts index c6ca8d917..cf3082765 100644 --- a/src/types.ts +++ b/src/types.ts @@ -30,9 +30,9 @@ export type ReturnTypeOf = T extends AnyFunction ? ReturnType : T extends AnyFunction[] - ? // exclude `void` from intersection, see octokit/octokit.js#2115 - UnionToIntersection, void>> - : never; + ? // exclude `void` from intersection, see octokit/octokit.js#2115 + UnionToIntersection, void>> + : never; /** * @author https://stackoverflow.com/users/2887218/jcalz diff --git a/test/tsconfig.test.json b/test/tsconfig.test.json index c41c024df..b0961e18c 100644 --- a/test/tsconfig.test.json +++ b/test/tsconfig.test.json @@ -5,7 +5,5 @@ "noEmit": true, "verbatimModuleSyntax": false }, - "include": [ - "src/**/*" - ] + "include": ["src/**/*"] }