@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.
@@ -1 +1 @@
1
- lts/jod
1
+ lts/krypton
@@ -4,7 +4,7 @@
4
4
  # Build
5
5
  #
6
6
 
7
- FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/node:jod-alpine as build
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:jod-alpine as runtime
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 tseslint from '@typescript-eslint/eslint-plugin';
2
- import tsParser from '@typescript-eslint/parser';
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
- // TypeScript rules
33
- '@typescript-eslint/no-loss-of-precision': 'off',
34
- '@typescript-eslint/no-explicit-any': 'off',
35
- '@typescript-eslint/ban-ts-comment': 'off',
36
- '@typescript-eslint/ban-ts-ignore': 'off',
37
- '@typescript-eslint/explicit-module-boundary-types': 'off',
38
- '@typescript-eslint/no-var-requires': 'off',
39
- '@typescript-eslint/no-floating-promises': 'error',
40
- '@typescript-eslint/no-unused-vars': 'off',
41
- '@typescript-eslint/no-non-null-assertion': 'off',
42
- '@typescript-eslint/prefer-namespace-keyword': 'off',
43
- '@typescript-eslint/no-namespace': 'off',
44
- '@typescript-eslint/no-inferrable-types': 'off',
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': ['error', { allow: ['info', 'error'] }],
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
+ );