eslint-config-gits 5.0.21 → 5.0.23

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/index.mjs +12 -8
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [5.0.23](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.22...v5.0.23) (2024-08-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Enforce type def for class members ([2f5de39](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/2f5de39a6834a57968aa2c5a2a60dfa4db588f93))
7
+
8
+ ## [5.0.22](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.21...v5.0.22) (2024-08-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Set correct type expression for variables ([ee84eeb](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/ee84eeb9fe12ad0bf9d91f37ed8d5f1510e46d60))
14
+
1
15
  ## [5.0.21](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.20...v5.0.21) (2024-08-22)
2
16
 
3
17
 
package/index.mjs CHANGED
@@ -75,8 +75,15 @@ 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
+ "propertyDeclaration": true,
83
+ "memberVariableDeclaration": true
84
+ }
85
+ ],
86
+ '@typescript-eslint/explicit-function-return-type': 'error',
80
87
  'react/jsx-curly-brace-presence': ['error', {props: "never", children: "never"}],
81
88
  'arrow-body-style': ['error', 'as-needed']
82
89
  },
@@ -85,6 +92,7 @@ const plugin = {
85
92
  files: ['**/*.json'],
86
93
  rules: {
87
94
  'prettier/prettier': 'off',
95
+ '@typescript-eslint/no-unused-expressions': 'off'
88
96
  },
89
97
  },
90
98
  {
@@ -96,12 +104,8 @@ const plugin = {
96
104
  {
97
105
  files: ['**/*.test.ts', '**/*.test.tsx', '**/*.stories.*'],
98
106
  rules: {
99
- '@typescript-eslint/typedef': [
100
- 'off'
101
- ],
102
- '@typescript-eslint/explicit-function-return-type': [
103
- 'off'
104
- ],
107
+ '@typescript-eslint/typedef': ['off'],
108
+ '@typescript-eslint/explicit-function-return-type': ['off'],
105
109
  }
106
110
  }
107
111
  ]
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.23",
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",