Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update dependencies to latest versions for hashfiles#1756

Merged
TingluoHuang merged 1 commit into
mainfrom
thboop/updaterunnerdependencies
Mar 18, 2022
Merged

Update dependencies to latest versions for hashfiles#1756
TingluoHuang merged 1 commit into
mainfrom
thboop/updaterunnerdependencies

Conversation

@thboop

@thboop thboop commented Mar 15, 2022

Copy link
Copy Markdown
Collaborator

This PR:

  • Updates the lockfile version to v2, to match node 16's default npm version
  • Updates the dependencies to their latest versions
  • Configures the linter to be less noisy and less maintenance, as a result of updating the eslint version. Hashfiles is a single file project, we are likely okay to not have heavy linting on it.

@thboop thboop requested a review from a team as a code owner March 15, 2022 20:14
@@ -1,6 +1,6 @@
{
"plugins": ["jest", "@typescript-eslint"],
"extends": ["plugin:github/es6"],

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per docs we should pin to recommended

"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-ignore": "error",
"@typescript-eslint/naming-convention": [

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This replaces

      "@typescript-eslint/camelcase": "error",
      "@typescript-eslint/class-name-casing": "error",

"@typescript-eslint/unbound-method": "error"
"@typescript-eslint/unbound-method": "error",
"filenames/match-regex" : "off",
"github/no-then" : 1, // warning

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new rules introduced, we fail this one, lets warn for now and if we want to update the code later we can

"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error"
"@typescript-eslint/unbound-method": "error",
"filenames/match-regex" : "off",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this provides a regex that all filesnames must match, the project is one file, lets just turn it off.

"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}],
"@typescript-eslint/func-call-spacing": ["error", "never"],
"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed some depreciated rules, again this is a one file project, I think we are okay without heavy linting.

"@typescript-eslint/generic-type-naming": ["error", "^[A-Z][A-Za-z]*$"],
"@typescript-eslint/no-object-literal-type-assertion": "error",
"@typescript-eslint/prefer-interface": "error",

import * as glob from '@actions/glob'
import * as crypto from 'crypto'
import * as fs from 'fs'
import * as glob from '@actions/glob'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reordered due to new rule expecting imports to be in alphabetical order

const glob = __importStar(__webpack_require__(281));
const crypto = __importStar(__webpack_require__(417));
const fs = __importStar(__webpack_require__(747));
const glob = __importStar(__webpack_require__(281));

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no changes besides the order of imports being moved around

@TingluoHuang TingluoHuang merged commit 48b6cd9 into main Mar 18, 2022
@TingluoHuang TingluoHuang deleted the thboop/updaterunnerdependencies branch March 18, 2022 03:21
thboop added a commit that referenced this pull request Mar 18, 2022
thboop added a commit that referenced this pull request Mar 18, 2022
* Update dependencies to latest versions (#1756)

* cleanup message displayed on job started/completed hooks (#1769)

* Revert "Added repository name and workflow file name to console output (#1761)" (#1770)

98aa9c1

* 2.289.1 release notes (#1771)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants