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 +7 -0
- package/index.mjs +10 -8
- package/package.json +1 -1
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
|
-
|
|
79
|
-
|
|
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
|
-
|
|
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
|
]
|