eslint-config-gits 5.0.21 → 5.0.22

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [5.0.22](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.21...v5.0.22) (2024-08-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Set correct type expression for variables ([ee84eeb](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/ee84eeb9fe12ad0bf9d91f37ed8d5f1510e46d60))
7
+
1
8
  ## [5.0.21](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.20...v5.0.21) (2024-08-22)
2
9
 
3
10
 
package/index.mjs CHANGED
@@ -75,8 +75,13 @@ const plugin = {
75
75
  {
76
76
  files: ['**/*.ts', '**/*.tsx'],
77
77
  rules: {
78
- '@typescript-eslint/typedef': ['error'],
79
- '@typescript-eslint/explicit-function-return-type': ['error'],
78
+ "@typescript-eslint/typedef": [
79
+ "error",
80
+ {
81
+ "variableDeclaration": true
82
+ }
83
+ ],
84
+ '@typescript-eslint/explicit-function-return-type': 'error',
80
85
  'react/jsx-curly-brace-presence': ['error', {props: "never", children: "never"}],
81
86
  'arrow-body-style': ['error', 'as-needed']
82
87
  },
@@ -85,6 +90,7 @@ const plugin = {
85
90
  files: ['**/*.json'],
86
91
  rules: {
87
92
  'prettier/prettier': 'off',
93
+ '@typescript-eslint/no-unused-expressions': 'off'
88
94
  },
89
95
  },
90
96
  {
@@ -96,12 +102,8 @@ const plugin = {
96
102
  {
97
103
  files: ['**/*.test.ts', '**/*.test.tsx', '**/*.stories.*'],
98
104
  rules: {
99
- '@typescript-eslint/typedef': [
100
- 'off'
101
- ],
102
- '@typescript-eslint/explicit-function-return-type': [
103
- 'off'
104
- ],
105
+ '@typescript-eslint/typedef': ['off'],
106
+ '@typescript-eslint/explicit-function-return-type': ['off'],
105
107
  }
106
108
  }
107
109
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-gits",
3
- "version": "5.0.21",
3
+ "version": "5.0.22",
4
4
  "description": "EsLint preset for Geenen IT-Systeme",
5
5
  "repository": "https://gitlab.com/geenen-it-systeme/eslint-preset",
6
6
  "main": "index.mjs",