diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..6b2b113 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,10 @@ +# don't ever lint node_modules + node_modules +# don't lint build output (make sure it's set to your correct build folder name) +dist +# don't lint nyc coverage output +coverage +*.js +resources + + diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..7dd107c --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,12 @@ +module.exports = { + root: true, + parser: "@typescript-eslint/parser", + plugins: ["@typescript-eslint"], + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "prettier", + "prettier/@typescript-eslint", + ], +}; diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100755 index 0000000..840cc50 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,34 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: bug +assignees: '' + +--- + +**Describe the bug** + + +**To Reproduce** + + +**Expected behavior** + + +**Please complete the following information about the solution:** +- [ ] Version: [e.g. v1.0.0] + +To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "_(SO0134) - The AWS CloudFormation template for deployment of the AWS Centralized WAF & SG Management. Version **v1.0.0**_". You can also find the version from [releases](https://github.com/awslabs/aws-centralized-waf-and-sg-management/releases) + +- [ ] Region: [e.g. us-east-1] +- [ ] Was the solution modified from the version published on this repository? +- [ ] If the answer to the previous question was yes, are the changes available on GitHub? +- [ ] Have you checked your [service quotas](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) for the sevices this solution uses? +- [ ] Were there any errors in the CloudWatch Logs? [How to enable debug mode?](https://github.com/awslabs/aws-centralized-waf-and-sg-management/#enable-debug-mode) + +**Screenshots** +If applicable, add screenshots to help explain your problem (please **DO NOT include sensitive information**). + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/documentation-improvements.md b/.github/ISSUE_TEMPLATE/documentation-improvements.md new file mode 100644 index 0000000..23d9133 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation-improvements.md @@ -0,0 +1,17 @@ +--- +name: Documentation improvements +about: Suggest a documentation update +title: '' +labels: documentation +assignees: '' + +--- + +**What were you initially searching for in the docs?** + + +**Is this related to an existing part of the documentation? Please share a link** + +**Describe how we could make it clearer** + +**If you have a proposed update, please share it here** \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100755 index 0000000..1d76207 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,17 @@ +--- +name: Feature request +about: Suggest an idea for this solution +title: '' +labels: feature-request, enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** + + +**Describe the feature you'd like** + + +**Additional context** + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100755 index 0000000..de50e4d --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,5 @@ +*Issue #, if available:* + +*Description of changes:* + +By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2096059 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +# Test and Compiler files +**test.json +**test.js + +# distribution folders +global-s3-assets +regional-s3-assets +open-source + +# Generated ouputs +dist +coverage +docs +npm-debug.log +*.zip +.scannerwork +*.xml +reports + +# Node dependencies +node_modules +package-lock.json + +# CDK asset staging directory +.cdk.staging +cdk.out +__snapshots__ + + + diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/.prettierrc.yml b/.prettierrc.yml new file mode 100644 index 0000000..7fefec8 --- /dev/null +++ b/.prettierrc.yml @@ -0,0 +1,12 @@ +# .prettierrc or .prettierrc.yaml +arrowParens: "always" +bracketSpacing: true +endOfLine: "lf" +htmlWhitespaceSensitivity: "css" +proseWrap: "preserve" +trailingComma: "es5" +tabWidth: 2 +semi: true +singleQuote: false +quoteProps: "as-needed" +printWidth: 80