eslint-config-gits 3.1.1 → 4.0.0

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 +20 -0
  2. package/index.js +11 -7
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ # [4.0.0](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v3.1.2...v4.0.0) (2024-03-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * Set error for undefined ([89ec1a3](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/89ec1a347d7c98cee744dc7c69b34e658504d00c))
7
+ * Set error for unused var ([7b81f3c](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/7b81f3c6af317e6b28090cf98e6b4470dcb32bdb))
8
+
9
+
10
+ ### BREAKING CHANGES
11
+
12
+ * Forbid undefined as type or value
13
+
14
+ ## [3.1.2](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v3.1.1...v3.1.2) (2023-11-27)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * Organize rules in "all" and "disabled for tests" ([2c7478a](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/2c7478a738204ce4f5338cdc701251a7197c62f9))
20
+
1
21
  ## [3.1.1](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v3.1.0...v3.1.1) (2023-11-27)
2
22
 
3
23
 
package/index.js CHANGED
@@ -15,6 +15,7 @@ module.exports = {
15
15
  sourceType: 'module',
16
16
  },
17
17
  rules: {
18
+ 'no-undefined': 'error',
18
19
  'prettier/prettier': [
19
20
  'error',
20
21
  {
@@ -46,15 +47,15 @@ module.exports = {
46
47
  variableDeclarationIgnoreFunction: true,
47
48
  },
48
49
  ],
50
+ '@typescript-eslint/no-unused-vars': 'error',
49
51
  'default-param-last': ['error']
50
52
  },
51
53
  overrides: [
52
54
  {
53
55
  files: ['*.ts', '*.tsx'],
54
- excludedFiles: ['*.test.ts', '*.test.tsx'],
55
56
  rules: {
56
57
  '@typescript-eslint/explicit-function-return-type': ['error'],
57
- 'react/jsx-curly-brace-presence': ['error', { props: "never", children: "never" }],
58
+ 'react/jsx-curly-brace-presence': ['error', {props: "never", children: "never"}],
58
59
  'arrow-body-style': ['error', 'as-needed']
59
60
  },
60
61
  },
@@ -71,11 +72,14 @@ module.exports = {
71
72
  },
72
73
  },
73
74
  {
74
- "files": ["*.test.ts", "*.test.tsx", "*.stories.*"],
75
- "rules": {
76
- "@typescript-eslint/typedef": [
77
- "off"
78
- ]
75
+ files: ['*.test.ts', '*.test.tsx', '*.stories.*'],
76
+ rules: {
77
+ '@typescript-eslint/typedef': [
78
+ 'off'
79
+ ],
80
+ '@typescript-eslint/explicit-function-return-type': [
81
+ 'off'
82
+ ],
79
83
  }
80
84
  }
81
85
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-gits",
3
- "version": "3.1.1",
3
+ "version": "4.0.0",
4
4
  "description": "EsLint preset for Geenen IT-Systeme",
5
5
  "repository": "https://gitlab.com/geenen-it-systeme/eslint-preset",
6
6
  "main": "index.js",