eslint-config-gits 6.0.0 → 6.1.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 +14 -0
  2. package/index.mjs +2 -19
  3. package/package.json +2 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [6.1.0](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v6.0.1...v6.1.0) (2026-04-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * Use flat config ([b0a9205](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/b0a9205f3b49e5857a2c058bc463445cd8ca6e80))
7
+
8
+ ## [6.0.1](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v6.0.0...v6.0.1) (2026-04-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Require @eslint/js ([b7edaf8](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/b7edaf8941d843dcf84185adb48425b5b77274a0))
14
+
1
15
  # [6.0.0](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.1.0...v6.0.0) (2026-04-02)
2
16
 
3
17
 
package/index.mjs CHANGED
@@ -1,23 +1,10 @@
1
- import {fixupConfigRules, fixupPluginRules} from "@eslint/compat";
2
1
  import react from "eslint-plugin-react";
3
2
  import prettier from "eslint-plugin-prettier";
4
3
  import reactHooks from "eslint-plugin-react-hooks";
5
4
  import tsParser from "@typescript-eslint/parser";
6
- import path from "node:path";
7
- import {fileURLToPath} from "node:url";
8
- import js from "@eslint/js";
9
- import {FlatCompat} from "@eslint/eslintrc";
10
5
  import globals from 'globals';
11
6
  import tsLintEsLint from 'typescript-eslint';
12
7
 
13
- const __filename = fileURLToPath(import.meta.url);
14
- const __dirname = path.dirname(__filename);
15
- const compat = new FlatCompat({
16
- baseDirectory: __dirname,
17
- recommendedConfig: js.configs.recommended,
18
- allConfig: js.configs.all
19
- });
20
-
21
8
  const rules = {
22
9
  'no-undefined': 'error',
23
10
  'prettier/prettier': [
@@ -45,16 +32,12 @@ const plugin = {
45
32
  configs: {
46
33
  recommended: [
47
34
  ...tsLintEsLint.configs.recommended,
48
- ...fixupConfigRules(compat.extends(
49
- "plugin:react/recommended",
50
- "plugin:react-hooks/recommended",
51
- )),
35
+ react.configs.flat.recommended,
36
+ reactHooks.configs.flat.recommended,
52
37
  {
53
38
  rules,
54
39
  plugins: {
55
- react: fixupPluginRules(react),
56
40
  prettier,
57
- "react-hooks": fixupPluginRules(reactHooks),
58
41
  },
59
42
  languageOptions: {
60
43
  globals: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-gits",
3
- "version": "6.0.0",
3
+ "version": "6.1.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.mjs",
@@ -14,7 +14,7 @@
14
14
  "author": "",
15
15
  "license": "ISC",
16
16
  "peerDependencies": {
17
- "@eslint/compat": "^2.0.0",
17
+ "@eslint/js": "10.0.0",
18
18
  "@typescript-eslint/parser": "^8.38.0",
19
19
  "eslint": "^10.0.0",
20
20
  "eslint-plugin-prettier": "^5.5.3",
@@ -25,8 +25,6 @@
25
25
  "typescript-eslint": "^8.38.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@eslint/compat": "2.0.3",
29
- "@eslint/eslintrc": "3.3.5",
30
28
  "@eslint/js": "10.0.1",
31
29
  "@semantic-release/changelog": "6.0.3",
32
30
  "@semantic-release/git": "10.0.1",