declapract-typescript-ehmpathy 0.37.2 → 0.37.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/practices/cicd-common/best-practice/.github/workflows/.test.yml +4 -1
- package/dist/practices/errors/best-practice/package.json +1 -1
- package/dist/practices/lint/best-practice/.eslintrc.js +1 -0
- package/dist/practices/lint-react-native/best-practice/.eslintrc.js +1 -0
- package/dist/practices/serverless/best-practice/serverless.yml +27 -0
- package/package.json +1 -1
|
@@ -76,11 +76,14 @@ jobs:
|
|
|
76
76
|
- name: checkout
|
|
77
77
|
uses: actions/checkout@v3
|
|
78
78
|
|
|
79
|
-
- name: set node
|
|
79
|
+
- name: set node version
|
|
80
80
|
uses: actions/setup-node@v3
|
|
81
81
|
with:
|
|
82
82
|
node-version-file: '.nvmrc'
|
|
83
83
|
|
|
84
|
+
- name: set terraform version
|
|
85
|
+
uses: hashicorp/setup-terraform@v3
|
|
86
|
+
|
|
84
87
|
- name: get node-modules from cache
|
|
85
88
|
uses: actions/cache/restore@v4
|
|
86
89
|
with:
|
|
@@ -44,5 +44,6 @@ module.exports = {
|
|
|
44
44
|
'no-return-await': 'off', // this does not help anything and actually leads to bugs if we subsequently wrap the return in a try catch without remembering to _then_ add await
|
|
45
45
|
'@typescript-eslint/return-await': 'off',
|
|
46
46
|
'@typescript-eslint/no-unsafe-declaration-merging': 'off', // dobjs are built off of this
|
|
47
|
+
'@typescript-eslint/default-param-last': 'off', // interferes with input vs context
|
|
47
48
|
},
|
|
48
49
|
};
|
|
@@ -49,6 +49,7 @@ module.exports = {
|
|
|
49
49
|
'no-return-await': 'off', // this does not help anything and actually leads to bugs if we subsequently wrap the return in a try catch without remembering to _then_ add await
|
|
50
50
|
'@typescript-eslint/return-await': 'off',
|
|
51
51
|
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
|
|
52
|
+
'@typescript-eslint/default-param-last': 'off', // interferes with input vs context
|
|
52
53
|
},
|
|
53
54
|
settings: {
|
|
54
55
|
'import/ignore': ['react-native'], // https://github.com/facebook/react-native/issues/28549
|
|
@@ -83,3 +83,30 @@ provider:
|
|
|
83
83
|
Action:
|
|
84
84
|
- SNS:Publish
|
|
85
85
|
Resource: arn:aws:sns:${aws:region}:${aws:accountId}:${self:service}-*
|
|
86
|
+
# allow publishing to kinesis firehose streams namespaced by this service
|
|
87
|
+
- Effect: Allow
|
|
88
|
+
Action:
|
|
89
|
+
- firehose:PutRecord
|
|
90
|
+
Resource: arn:aws:firehose:${aws:region}:${aws:accountId}:deliverystream/${self:service}-* # allow publishing to any streams w/ this services name prefix
|
|
91
|
+
# allow reading and writing to glue tables namespaced to this service
|
|
92
|
+
- Effect: Allow
|
|
93
|
+
Action:
|
|
94
|
+
- glue:GetDatabase
|
|
95
|
+
- glue:GetTable
|
|
96
|
+
- glue:GetTableVersion
|
|
97
|
+
- glue:GetTableVersions
|
|
98
|
+
- glue:GetPartition
|
|
99
|
+
- glue:GetPartitions
|
|
100
|
+
- glue:CreatePartition
|
|
101
|
+
- glue:BatchCreatePartition
|
|
102
|
+
Resource:
|
|
103
|
+
- arn:aws:glue:${aws:region}:${aws:accountId}:catalog
|
|
104
|
+
- arn:aws:glue:${aws:region}:${aws:accountId}:database/@declapract{variable.databaseName}_${self:provider.stage}
|
|
105
|
+
- arn:aws:glue:${aws:region}:${aws:accountId}:table/@declapract{variable.databaseName}_${self:provider.stage}/*
|
|
106
|
+
# allow athena queries
|
|
107
|
+
- Effect: Allow
|
|
108
|
+
Action:
|
|
109
|
+
- athena:StartQueryExecution
|
|
110
|
+
- athena:GetQueryExecution
|
|
111
|
+
- athena:GetQueryResults
|
|
112
|
+
Resource: '*'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "declapract-typescript-ehmpathy",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "declapract best practices declarations for typescript",
|
|
5
|
-
"version": "0.37.
|
|
5
|
+
"version": "0.37.4",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|