eslint-config-gits 5.0.8 → 5.0.10
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 +22 -20
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [5.0.10](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.9...v5.0.10) (2024-08-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Add rules to recommended config ([76c31ac](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/76c31ac1dc0cc46cdc7b54febc4741055a44ac58))
|
|
7
|
+
|
|
8
|
+
## [5.0.9](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.8...v5.0.9) (2024-08-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Declare globals peer dependency with fixed json error ([11499e1](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/11499e11797be09ab371bd9514145c2711d845ff))
|
|
14
|
+
|
|
1
15
|
## [5.0.8](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.7...v5.0.8) (2024-08-22)
|
|
2
16
|
|
|
3
17
|
|
package/index.mjs
CHANGED
|
@@ -18,6 +18,26 @@ const compat = new FlatCompat({
|
|
|
18
18
|
allConfig: js.configs.all
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
+
const rules = {
|
|
22
|
+
'no-undefined': 'error',
|
|
23
|
+
'prettier/prettier': [
|
|
24
|
+
'error',
|
|
25
|
+
{
|
|
26
|
+
tabWidth: 4,
|
|
27
|
+
useTabs: false,
|
|
28
|
+
printWidth: 80,
|
|
29
|
+
semi: true,
|
|
30
|
+
singleQuote: true,
|
|
31
|
+
quoteProps: 'as-needed',
|
|
32
|
+
jsxSingleQuote: false,
|
|
33
|
+
trailingComma: 'es5',
|
|
34
|
+
bracketSpacing: true,
|
|
35
|
+
bracketSameLine: false,
|
|
36
|
+
arrowParens: 'avoid',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
'default-param-last': ['error']
|
|
40
|
+
};
|
|
21
41
|
const plugin = {
|
|
22
42
|
meta: {
|
|
23
43
|
name: 'eslint-config-gits',
|
|
@@ -31,6 +51,7 @@ const plugin = {
|
|
|
31
51
|
"plugin:react-hooks/recommended",
|
|
32
52
|
)),
|
|
33
53
|
{
|
|
54
|
+
rules,
|
|
34
55
|
plugins: {
|
|
35
56
|
react: fixupPluginRules(react),
|
|
36
57
|
"@typescript-eslint": fixupPluginRules(typescriptEslint),
|
|
@@ -86,25 +107,6 @@ const plugin = {
|
|
|
86
107
|
}
|
|
87
108
|
]
|
|
88
109
|
},
|
|
89
|
-
rules:
|
|
90
|
-
'no-undefined': 'error',
|
|
91
|
-
'prettier/prettier': [
|
|
92
|
-
'error',
|
|
93
|
-
{
|
|
94
|
-
tabWidth: 4,
|
|
95
|
-
useTabs: false,
|
|
96
|
-
printWidth: 80,
|
|
97
|
-
semi: true,
|
|
98
|
-
singleQuote: true,
|
|
99
|
-
quoteProps: 'as-needed',
|
|
100
|
-
jsxSingleQuote: false,
|
|
101
|
-
trailingComma: 'es5',
|
|
102
|
-
bracketSpacing: true,
|
|
103
|
-
bracketSameLine: false,
|
|
104
|
-
arrowParens: 'avoid',
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
'default-param-last': ['error']
|
|
108
|
-
},
|
|
110
|
+
rules: rules,
|
|
109
111
|
};
|
|
110
112
|
export default plugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-gits",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
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",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"eslint-plugin-react": "^7",
|
|
22
22
|
"eslint-plugin-react-hooks": "^5.1.0-rc-1d989965-20240821",
|
|
23
23
|
"eslint-plugin-storybook": "^0",
|
|
24
|
+
"globals": "^15",
|
|
24
25
|
"prettier": "^3"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|