-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies to latest versions for hashfiles #1756
Conversation
@@ -1,6 +1,6 @@ | |||
{ | |||
"plugins": ["jest", "@typescript-eslint"], | |||
"extends": ["plugin:github/es6"], |
There was a problem hiding this comment.
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
@@ -17,13 +17,16 @@ | |||
"@typescript-eslint/no-require-imports": "error", | |||
"@typescript-eslint/array-type": "error", | |||
"@typescript-eslint/await-thenable": "error", | |||
"@typescript-eslint/ban-ts-ignore": "error", | |||
"@typescript-eslint/naming-convention": [ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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/semi": ["error", "never"], | ||
"@typescript-eslint/type-annotation-spacing": "error", | ||
"@typescript-eslint/unbound-method": "error" | ||
"@typescript-eslint/unbound-method": "error", | ||
"filenames/match-regex" : "off", |
There was a problem hiding this comment.
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/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]*$"], |
There was a problem hiding this comment.
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 crypto from 'crypto' | ||
import * as fs from 'fs' | ||
import * as glob from '@actions/glob' |
There was a problem hiding this comment.
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 crypto = __importStar(__webpack_require__(417)); | ||
const fs = __importStar(__webpack_require__(747)); | ||
const glob = __importStar(__webpack_require__(281)); |
There was a problem hiding this comment.
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
This PR: