-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: cleaned up eslint and ensure consistency across packages. (#34
) * ci: maintain consistency across various packages. * refactor: linted files with new consistent configuration.
- Loading branch information
Showing
52 changed files
with
694 additions
and
804 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
import type { Environment } from 'aws-cdk-lib' | ||
import { App } from 'aws-cdk-lib' | ||
import type { Environment } from "aws-cdk-lib"; | ||
import { App } from "aws-cdk-lib"; | ||
|
||
import { INFRA_CONFIG } from '@snakecode/models' | ||
import { INFRA_CONFIG } from "@snakecode/models"; | ||
|
||
import { StageUtils } from './utils/StageUtils' | ||
import { StageUtils } from "./utils/StageUtils"; | ||
|
||
const app = new App() | ||
const app = new App(); | ||
|
||
const stage = app.node.tryGetContext('stage') && app.node.tryGetContext('stage')!.toString() | ||
const region = app.node.tryGetContext('region') && app.node.tryGetContext('region')!.toString() | ||
const account = app.node.tryGetContext('account') && app.node.tryGetContext('account')!.toString() | ||
const stage = app.node.tryGetContext("stage") && app.node.tryGetContext("stage")!.toString(); | ||
const region = app.node.tryGetContext("region") && app.node.tryGetContext("region")!.toString(); | ||
const account = app.node.tryGetContext("account") && app.node.tryGetContext("account")!.toString(); | ||
|
||
if (!stage || !region || !account) { | ||
throw new Error(`Either stage, region or account arguments not passed in to CDK app, as \"-c stage={STAGE} -c region={REGION} -c account={ACCOUNT}\"`) | ||
throw new Error(`Either stage, region or account arguments not passed in to CDK app, as "-c stage={STAGE} -c region={REGION} -c account={ACCOUNT}"`); | ||
} | ||
|
||
const environment: Environment = { | ||
account: account, | ||
region: region | ||
} | ||
account, | ||
region, | ||
}; | ||
|
||
const stageUtils = new StageUtils(app, INFRA_CONFIG, environment, stage) | ||
const stageUtils = new StageUtils(app, INFRA_CONFIG, environment, stage); | ||
|
||
stageUtils.setupStages() | ||
stageUtils.setupStages(); | ||
|
||
app.synth() | ||
app.synth(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.