eslint-config-gits 5.0.20 → 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 +14 -0
- package/index.mjs +11 -9
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [5.0.21](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.20...v5.0.21) (2024-08-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Use typescript-eslint directly (again, don't ask) ([bac5ffe](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/bac5ffe9e140219cdb7fb3956a5b5f9235bd73b1))
|
|
14
|
+
|
|
1
15
|
## [5.0.20](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.19...v5.0.20) (2024-08-22)
|
|
2
16
|
|
|
3
17
|
|
package/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import {fileURLToPath} from "node:url";
|
|
|
8
8
|
import js from "@eslint/js";
|
|
9
9
|
import {FlatCompat} from "@eslint/eslintrc";
|
|
10
10
|
import globals from 'globals';
|
|
11
|
-
import tsLintEsLint from '
|
|
11
|
+
import tsLintEsLint from 'typescript-eslint';
|
|
12
12
|
|
|
13
13
|
const __filename = fileURLToPath(import.meta.url);
|
|
14
14
|
const __dirname = path.dirname(__filename);
|
|
@@ -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
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-gits",
|
|
3
|
-
"version": "5.0.
|
|
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",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@eslint/compat": "^1",
|
|
18
|
-
"@typescript-eslint/eslint-plugin": "^8",
|
|
19
18
|
"@typescript-eslint/parser": "^8",
|
|
20
19
|
"eslint": "^9",
|
|
21
20
|
"eslint-plugin-prettier": "^5",
|
|
@@ -23,7 +22,8 @@
|
|
|
23
22
|
"eslint-plugin-react-hooks": "^5.1.0-rc-1d989965-20240821",
|
|
24
23
|
"eslint-plugin-storybook": "^0",
|
|
25
24
|
"globals": "^15",
|
|
26
|
-
"prettier": "^3"
|
|
25
|
+
"prettier": "^3",
|
|
26
|
+
"typescript-eslint": "^8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@eslint/compat": "^1.1.1",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"eslint-plugin-storybook": "^0.8.0",
|
|
42
42
|
"globals": "^15.9.0",
|
|
43
43
|
"prettier": "^3.3.3",
|
|
44
|
-
"semantic-release": "^24.1.0"
|
|
44
|
+
"semantic-release": "^24.1.0",
|
|
45
|
+
"typescript-eslint": "^8.2.0"
|
|
45
46
|
}
|
|
46
47
|
}
|