eslint-config-gits 5.0.25 → 5.0.26
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 +7 -0
- package/index.mjs +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [5.0.26](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.25...v5.0.26) (2024-08-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Don't enforce return type on functions ([e06aa54](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/e06aa54704b4a7d8c96149d3ebc1e2192b15ebc0))
|
|
7
|
+
|
|
1
8
|
## [5.0.25](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.24...v5.0.25) (2024-08-22)
|
|
2
9
|
|
|
3
10
|
|
package/index.mjs
CHANGED
|
@@ -75,6 +75,7 @@ const plugin = {
|
|
|
75
75
|
{
|
|
76
76
|
files: ['**/*.ts', '**/*.tsx'],
|
|
77
77
|
rules: {
|
|
78
|
+
// Enforce typings on all variables, including arrow functions
|
|
78
79
|
"@typescript-eslint/typedef": [
|
|
79
80
|
"error",
|
|
80
81
|
{
|
|
@@ -83,7 +84,8 @@ const plugin = {
|
|
|
83
84
|
"memberVariableDeclaration": true
|
|
84
85
|
}
|
|
85
86
|
],
|
|
86
|
-
|
|
87
|
+
// Already checked via arrow functions and variable definition
|
|
88
|
+
'@typescript-eslint/explicit-function-return-type': ['off'],
|
|
87
89
|
'react/jsx-curly-brace-presence': ['error', {props: "never", children: "never"}],
|
|
88
90
|
'arrow-body-style': ['error', 'as-needed']
|
|
89
91
|
},
|