Skip to content

Commit

Permalink
chore: add "format" top-level script
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Jul 6, 2023
1 parent 04680fe commit b64a343
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"extends": [
"plugin:prettier/recommended"
],
"extends": ["plugin:prettier/recommended"],
"env": {
"node": true,
"es6": true
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"test": "turbo run test",
"lint": "turbo run lint --continue",
"lint-fix": "turbo run lint-fix --continue",
"format": "npx prettier -w ./packages/**/*.{js,ts,json}",
"prepare": "npx simple-git-hooks"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions packages/artillery/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"globals": {
"artillery": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ module.exports = async function setDefaultAWSCredentials(SDK) {
if (credentials !== null) {
await updateSSOCredentials(aws);

setInterval(
async () => {
await updateSSOCredentials(aws);
},
60 * 10 * 1000
).unref();
setInterval(async () => {
await updateSSOCredentials(aws);
}, 60 * 10 * 1000).unref();
} else {
throw new Error(
'The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile.'
Expand Down

0 comments on commit b64a343

Please sign in to comment.