@continuoussecuritytooling/keycloak-reporter 1.1.4-2682 → 1.1.4-2686

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/.eslintrc.cjs CHANGED
@@ -1,15 +1,51 @@
1
- /* eslint-env node */
2
- module.exports = {
3
- env: {
4
- node: true,
5
- commonjs: true,
1
+ const { defineConfig } = require('eslint/config');
2
+
3
+ const globals = require('globals');
4
+ const tsParser = require('@typescript-eslint/parser');
5
+ const typescriptEslint = require('@typescript-eslint/eslint-plugin');
6
+ const js = require('@eslint/js');
7
+
8
+ const { FlatCompat } = require('@eslint/eslintrc');
9
+
10
+ const compat = new FlatCompat({
11
+ baseDirectory: __dirname,
12
+ recommendedConfig: js.configs.recommended,
13
+ allConfig: js.configs.all,
14
+ });
15
+
16
+ module.exports = defineConfig([
17
+ {
18
+ languageOptions: {
19
+ globals: {
20
+ ...globals.node,
21
+ ...globals.commonjs,
22
+ },
23
+
24
+ parser: tsParser,
25
+ },
26
+
27
+ extends: compat.extends(
28
+ 'eslint:recommended',
29
+ 'plugin:@typescript-eslint/recommended',
30
+ ),
31
+
32
+ plugins: {
33
+ '@typescript-eslint': typescriptEslint,
34
+ },
35
+
36
+ rules: {
37
+ quotes: [
38
+ 2,
39
+ 'single',
40
+ {
41
+ avoidEscape: true,
42
+ },
43
+ ],
44
+
45
+ 'comma-dangle': ['error', 'only-multiline'],
46
+ },
6
47
  },
7
- extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
8
- parser: '@typescript-eslint/parser',
9
- plugins: ['@typescript-eslint'],
10
- root: true,
11
- rules: {
12
- quotes: [2, 'single', { avoidEscape: true }],
13
- 'comma-dangle': ['error', 'only-multiline'],
48
+ {
49
+ ignores: ['.eslintrc.cjs', 'dist/*'],
14
50
  },
15
- };
51
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continuoussecuritytooling/keycloak-reporter",
3
- "version": "1.1.4-2682",
3
+ "version": "1.1.4-2686",
4
4
  "description": "Reporting Tools for Keycloak",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "scripts": {
11
11
  "clean": "rm -rf dist/* && npm i",
12
12
  "build": "tsc && chmod +x dist/cli.js && cp -rp config dist/",
13
- "test": "eslint . && jest",
13
+ "test": "eslint --config .eslintrc.cjs . && jest",
14
14
  "end2end:start-server": ".bin/start-server.mjs -Dkeycloak.profile.feature.account_api=enabled -Dkeycloak.profile.feature.account2=disabled -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=e2e/fixtures/auth-utils/test-realm.json -Dkeycloak.migration.strategy=OVERWRITE_EXISTING",
15
15
  "end2end:test": "./e2e/run-tests.sh",
16
16
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
@@ -53,7 +53,7 @@
53
53
  "@typescript-eslint/eslint-plugin": "^8.0.0",
54
54
  "@typescript-eslint/parser": "^8.0.0",
55
55
  "conventional-changelog-cli": "^5.0.0",
56
- "eslint": "^8.40.0",
56
+ "eslint": "^9.0.0",
57
57
  "eslint-config-prettier": "^10.0.0",
58
58
  "eslint-plugin-prettier": "^5.0.0",
59
59
  "gunzip-maybe": "^1.4.2",
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- dist/**