@unito/integration-cli 1.0.1 → 1.0.3
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/boilerplate/.nvmrc +1 -1
- package/dist/boilerplate/Dockerfile +2 -2
- package/dist/boilerplate/eslint.config.mjs +37 -35
- package/dist/boilerplate/package-lock.json +969 -150
- package/dist/boilerplate/package.json +6 -6
- package/dist/boilerplate/src/handlers/me.ts +1 -0
- package/dist/boilerplate/src/handlers/root.ts +1 -0
- package/dist/boilerplate/src/helpers.ts +2 -2
- package/dist/boilerplate/src/provider.ts +1 -1
- package/dist/boilerplate/tsconfig.json +2 -10
- package/dist/src/resources/oauth2.js +60 -0
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/dist/boilerplate/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
lts/
|
|
1
|
+
lts/krypton
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# Build
|
|
5
5
|
#
|
|
6
6
|
|
|
7
|
-
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/node:
|
|
7
|
+
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/node:krypton-alpine as build
|
|
8
8
|
|
|
9
9
|
WORKDIR /build
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ RUN npm run compile
|
|
|
18
18
|
# Runtime
|
|
19
19
|
#
|
|
20
20
|
|
|
21
|
-
FROM --platform=$TARGETPLATFORM public.ecr.aws/docker/library/node:
|
|
21
|
+
FROM --platform=$TARGETPLATFORM public.ecr.aws/docker/library/node:krypton-alpine as runtime
|
|
22
22
|
|
|
23
23
|
# Create non-root user and group
|
|
24
24
|
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
|
@@ -1,47 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import tseslint from 'typescript-eslint';
|
|
3
3
|
|
|
4
|
-
export default
|
|
4
|
+
export default tseslint.config(
|
|
5
5
|
{
|
|
6
6
|
ignores: ['node_modules/**', 'dist/**', 'eslint.config.mjs'],
|
|
7
7
|
},
|
|
8
|
+
eslint.configs.recommended,
|
|
9
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
8
10
|
{
|
|
9
|
-
files: ['**/*.{js,ts}'],
|
|
10
11
|
languageOptions: {
|
|
11
|
-
parser: tsParser,
|
|
12
12
|
parserOptions: {
|
|
13
13
|
project: './**/tsconfig.json',
|
|
14
14
|
},
|
|
15
|
-
ecmaVersion: 'latest',
|
|
16
|
-
sourceType: 'module',
|
|
17
15
|
globals: {
|
|
18
|
-
// Equivalent to env: { browser: true, node: true, es6: true }
|
|
19
|
-
window: 'readonly',
|
|
20
|
-
document: 'readonly',
|
|
21
|
-
navigator: 'readonly',
|
|
22
16
|
process: 'readonly',
|
|
23
17
|
require: 'readonly',
|
|
24
18
|
module: 'readonly',
|
|
25
19
|
__dirname: 'readonly',
|
|
26
20
|
},
|
|
27
21
|
},
|
|
28
|
-
plugins: {
|
|
29
|
-
'@typescript-eslint': tseslint,
|
|
30
|
-
},
|
|
31
22
|
rules: {
|
|
32
|
-
|
|
33
|
-
'@typescript-eslint/no-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
'@typescript-eslint/no-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
23
|
+
'no-undef': 'off',
|
|
24
|
+
'@typescript-eslint/no-unused-vars': [
|
|
25
|
+
'error',
|
|
26
|
+
{
|
|
27
|
+
argsIgnorePattern: '^_',
|
|
28
|
+
varsIgnorePattern: '^_',
|
|
29
|
+
caughtErrorsIgnorePattern: '^_',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
'@typescript-eslint/no-misused-promises': [
|
|
33
|
+
'error',
|
|
34
|
+
{
|
|
35
|
+
checksVoidReturn: {
|
|
36
|
+
arguments: false,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
45
40
|
'@typescript-eslint/naming-convention': [
|
|
46
41
|
'warn',
|
|
47
42
|
{
|
|
@@ -59,14 +54,8 @@ export default [
|
|
|
59
54
|
modifiers: ['requiresQuotes'],
|
|
60
55
|
},
|
|
61
56
|
],
|
|
62
|
-
|
|
63
|
-
// JavaScript rules
|
|
64
57
|
'no-whitespace-before-property': 'error',
|
|
65
58
|
'no-trailing-spaces': 'error',
|
|
66
|
-
'no-extra-boolean-cast': 'off',
|
|
67
|
-
'no-inner-declarations': 'off',
|
|
68
|
-
'no-useless-escape': 'off',
|
|
69
|
-
'no-case-declarations': 'off',
|
|
70
59
|
'space-unary-ops': [
|
|
71
60
|
'error',
|
|
72
61
|
{
|
|
@@ -83,13 +72,26 @@ export default [
|
|
|
83
72
|
},
|
|
84
73
|
],
|
|
85
74
|
'object-curly-spacing': ['error', 'always'],
|
|
86
|
-
'no-console':
|
|
75
|
+
'no-console': 'error',
|
|
76
|
+
curly: ['error', 'all'],
|
|
77
|
+
'padding-line-between-statements': ['error', { blankLine: 'always', prev: '*', next: 'return' }],
|
|
78
|
+
eqeqeq: ['error', 'always', { null: 'ignore' }],
|
|
79
|
+
'prefer-const': 'error',
|
|
80
|
+
'no-else-return': 'error',
|
|
87
81
|
},
|
|
88
82
|
},
|
|
89
83
|
{
|
|
90
84
|
files: ['test/**/*.test.ts'],
|
|
91
85
|
rules: {
|
|
92
86
|
'@typescript-eslint/no-floating-promises': 'off',
|
|
87
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
88
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
89
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
90
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
91
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
92
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
93
|
+
'@typescript-eslint/unbound-method': 'off',
|
|
94
|
+
'@typescript-eslint/require-await': 'off',
|
|
93
95
|
},
|
|
94
96
|
},
|
|
95
|
-
|
|
97
|
+
);
|