eslint-config-gits 5.0.2 → 5.0.3

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [5.0.3](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.2...v5.0.3) (2024-08-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Define correct package main script ([1df1599](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/1df15995b8205824e04b0a3cc69693ebad76b602))
7
+ * eslint remove peer dependencies for eslint config ([a0fb2ac](https://gitlab.com/geenen-it-systeme/eslint-preset/commit/a0fb2ac62a02cfb0c7b338a766f5eda65c988504))
8
+
1
9
  ## [5.0.2](https://gitlab.com/geenen-it-systeme/eslint-preset/compare/v5.0.1...v5.0.2) (2024-08-22)
2
10
 
3
11
 
package/README.md CHANGED
@@ -8,5 +8,34 @@ This ESLint-Config provides commonly used configuration for eslint for all our p
8
8
  ## Installation
9
9
 
10
10
  ```shell
11
- npm install --save-dev eslint eslint-config-gits
11
+ npm install --save-dev eslint eslint-config-gits globals @eslint/js @eslint/eslintr
12
+ ```
13
+
14
+ ## Example configuration
15
+
16
+ ```js
17
+ // eslint.config.mjs
18
+ import globals from "globals";
19
+ import path from "node:path";
20
+ import {fileURLToPath} from "node:url";
21
+ import js from "@eslint/js";
22
+ import {FlatCompat} from "@eslint/eslintrc";
23
+
24
+ const __filename = fileURLToPath(import.meta.url);
25
+ const __dirname = path.dirname(__filename);
26
+ const compat = new FlatCompat({
27
+ baseDirectory: __dirname,
28
+ recommendedConfig: js.configs.recommended,
29
+ allConfig: js.configs.all
30
+ });
31
+
32
+ export default [...compat.extends("eslint-config-gits"), {
33
+ languageOptions: {
34
+ globals: {
35
+ ...globals.browser,
36
+ ...globals.jest,
37
+ ...globals.node,
38
+ },
39
+ },
40
+ }];
12
41
  ```
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "eslint-config-gits",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "EsLint preset for Geenen IT-Systeme",
5
5
  "repository": "https://gitlab.com/geenen-it-systeme/eslint-preset",
6
- "main": "index.js",
6
+ "main": "index.mjs",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
@@ -15,14 +15,11 @@
15
15
  "license": "ISC",
16
16
  "peerDependencies": {
17
17
  "@typescript-eslint/eslint-plugin": "^8",
18
- "@eslint/eslintrc": "^3",
19
- "@eslint/js": "^9",
20
18
  "eslint": "^9",
21
19
  "eslint-plugin-prettier": "^5",
22
20
  "eslint-plugin-react": "^7",
23
21
  "eslint-plugin-react-hooks": "^5.1.0-rc-1d989965-20240821",
24
22
  "eslint-plugin-storybook": "^0",
25
- "globals": "^15",
26
23
  "prettier": "^3"
27
24
  },
28
25
  "devDependencies": {