Skip to content

Commit

Permalink
[MABL-6856] Update Moment and Additional Improvements (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
twistedpair committed Apr 12, 2022
1 parent bbee8b0 commit 7cd8e8a
Show file tree
Hide file tree
Showing 9 changed files with 2,209 additions and 3,683 deletions.
60 changes: 52 additions & 8 deletions .eslintrc.json
Expand Up @@ -20,18 +20,62 @@
"@typescript-eslint/await-thenable": "error",

"camelcase": "off",
"@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"]
},
{
"selector": "classProperty",
"modifiers": ["private"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "classProperty",
"modifiers": ["protected"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "objectLiteralProperty",
"format": null
},
{
"selector": "typeProperty",
"format": null
},
{
"selector": "variable",
"format": ["PascalCase", "camelCase", "UPPER_CASE"]
},
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "enumMember",
"format": ["snake_case", "camelCase", "PascalCase", "UPPER_CASE"]
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": false
}
}
],

"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "as"}],
"@typescript-eslint/explicit-function-return-type": ["error"],
"@typescript-eslint/interface-name-prefix": "error",
"@typescript-eslint/no-extra-parens": ["error", "all", {
"returnAssign": false,
"nestedBinaryExpressions": false,
"enforceForArrowConditionals": false
}],
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-inferrable-types": "error",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -80,8 +80,8 @@ jobs:

- `MABL_API_KEY` {string} - Your mabl API key
[available here](https://app.mabl.com/workspaces/-/settings/apis) This should
be installed as a secret in your github repository.
- `GITHUB_TOKEN` {string} (optional) - The Github token for your repository. If
be installed as a secret in your GitHub repository.
- `GITHUB_TOKEN` {string} (optional) - The GitHub token for your repository. If
provided, the mabl action will associate a pull request with the deployment if
the commit being built is associated with any pull requests. This token is
automatically available as a secret in your repo but must be passed in
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -75,5 +75,5 @@ outputs:
description: "Number of mabl tests that failed against this deployment."

runs:
using: "node12"
using: "node16"
main: "lib/src/index.js"

0 comments on commit 7cd8e8a

Please sign in to comment.