8000 [MABL-6856] Update Moment and Additional Improvements (#53) · mablhq/github-run-tests-action@7cd8e8a · GitHub
[go: up one dir, main page]

Skip to content

Commit 7cd8e8a

Browse files
authored
[MABL-6856] Update Moment and Additional Improvements (#53)
1 parent bbee8b0 commit 7cd8e8a

File tree

9 files changed

+2209
-3683
lines changed

9 files changed

+2209
-3683
lines changed

.eslintrc.json

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,62 @@
2020
"@typescript-eslint/await-thenable": "error",
2121

2222
"camelcase": "off",
23-
"@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }],
23+
"@typescript-eslint/naming-convention": [
24+
"error",
25+
{
26+
"selector": "default",
27+
"format": ["camelCase"]
28+
},
29+
{
30+
"selector": "classProperty",
31+
"modifiers": ["private"],
32+
"format": ["camelCase"],
33+
"leadingUnderscore": "allow"
34+
},
35+
{
36+
"selector": "classProperty",
37+
"modifiers": ["protected"],
38+
"format": ["camelCase"],
39+
"leadingUnderscore": "allow"
40+
},
41+
{
42+
"selector": "objectLiteralProperty",
43+
"format": null
44+
},
45+
{
46+
"selector": "typeProperty",
47+
"format": null
48+
},
49+
{
50+
"selector": "variable",
51+
"format": ["PascalCase", "camelCase", "UPPER_CASE"]
52+
},
53+
{
54+
"selector": "parameter",
55+
"format": ["camelCase"],
56+
"leadingUnderscore": "allow"
57+
},
58+
{
59+
"selector": "enumMember",
60+
"format": ["snake_case", "camelCase", "PascalCase", "UPPER_CASE"]
61+
},
62+
{
63+
"selector": "typeLike",
64+
"format": ["PascalCase"]
65+
},
66+
{
67+
"selector": "interface",
68+
"format": ["PascalCase"],
69+
"custom": {
70+
"regex": "^I[A-Z]",
71+
"match": false
72+
}
73+
}
74+
],
2475

25-
"@typescript-eslint/class-name-casing": "error",
2676
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
2777
"@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "as"}],
2878
"@typescript-eslint/explicit-function-return-type": ["error"],
29-
"@typescript-eslint/interface-name-prefix": "error",
30-
"@typescript-eslint/no-extra-parens": ["error", "all", {
31-
"returnAssign": false,
32-
"nestedBinaryExpressions": false,
33-
"enforceForArrowConditionals": false
34-
}],
3579
"@typescript-eslint/no-extra-semi": "error",
3680
"@typescript-eslint/no-floating-promises": "error",
3781
"@typescript-eslint/no-inferrable-types": "error",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ jobs:
8080

8181
- `MABL_API_KEY` {string} - Your mabl API key
8282
[available here](https://app.mabl.com/workspaces/-/settings/apis) This should
83-
be installed as a secret in your github repository.
84-
- `GITHUB_TOKEN` {string} (optional) - The Github token for your repository. If
83+
be installed as a secret in your GitHub repository.
84+
- `GITHUB_TOKEN` {string} (optional) - The GitHub token for your repository. If
8585
provided, the mabl action will associate a pull request with the deployment if
8686
the commit being built is associated with any pull requests. This token is
8787
automatically available as a secret in your repo but must be passed in

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ outputs:
7575
description: "Number of mabl tests that failed against this deployment."
7676

7777
runs:
78-
using: "node12"
78+
using: "node16"
7979
main: "lib/src/index.js"

0 commit comments

Comments
 (0)
0