Skip to content

Commit daa92e6

Browse files
committed
chore: dependency updates
BREAKING CHANGE: major updates of keycloak-js, terrestris utils and a lot of dev depdencies (e.g. eslint v9)
1 parent a118a38 commit daa92e6

File tree

52 files changed

+1231
-384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1231
-384
lines changed

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# diasble CI
1+
# disable CI
22
[ -n "$CI" ] && exit 0
33

44
npx --no-install commitlint --edit $1

babel.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ module.exports = {
55
'@babel/preset-react'
66
],
77
plugins: [
8-
'@babel/transform-class-properties',
9-
'@babel/proposal-object-rest-spread',
10-
'@babel/proposal-optional-chaining',
8+
'@babel/plugin-transform-optional-chaining',
9+
['@babel/plugin-transform-class-properties', { loose: false }],
1110
[
1211
'import',
1312
{

eslint.config.mjs

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// @ts-check
22
import globals from 'globals';
3+
import reactHooks from 'eslint-plugin-react-hooks';
34
import importPlugin from 'eslint-plugin-import';
5+
import eslintReact from 'eslint-plugin-react';
46
import eslintTerrestris from '@terrestris/eslint-config-typescript';
57
import eslint from '@eslint/js';
68
import tsEslint from 'typescript-eslint';
@@ -14,28 +16,60 @@ export default tsEslint.config({
1416
importPlugin.flatConfigs.recommended
1517
],
1618
files: [
17-
'**/*.ts'
19+
'**/*.{ts,tsx}',
1820
],
1921
ignores: [
20-
'**/*.spec.ts',
21-
'**/jest/__mocks__/*.ts'
22+
'**/test/setup.ts',
23+
'**/e2e-tests/**.ts',
24+
'**/global-setup.ts',
25+
'**/playwright.config.ts',
26+
'**/*.spec.{ts,tsx}',
27+
'coverage/**/*.{js,ts*}',
28+
'dist/**/*.{js,ts*}'
2229
],
2330
languageOptions: {
2431
ecmaVersion: 2022,
2532
globals: globals.browser,
2633
parserOptions: {
2734
project: true,
2835
tsconfigRootDir: import.meta.dirname
29-
},
36+
}
3037
},
3138
plugins: {
32-
'@stylistic': stylisticEslint
39+
'react-hooks': reactHooks,
40+
'@stylistic': stylisticEslint,
41+
react: eslintReact
3342
},
3443
rules: {
3544
...eslintTerrestris.rules,
45+
'arrow-spacing': 'warn',
46+
'comma-spacing': 'warn',
47+
'comma-dangle': 'warn',
48+
'eol-last': 'warn',
49+
'no-multi-spaces': 'warn',
50+
'no-unused-vars': 'warn',
51+
'no-multiple-empty-lines': ['warn', {
52+
max: 1
53+
}],
54+
'object-property-newline': 'warn',
55+
'object-curly-newline': ['warn', {
56+
consistent: true,
57+
minProperties: 2
58+
}],
59+
'space-before-function-paren': ['warn', {
60+
anonymous: 'always',
61+
named: 'never',
62+
asyncArrow: 'always'
63+
}],
64+
...reactHooks.configs.recommended.rules,
65+
'react/jsx-closing-tag-location': ['warn'],
66+
'react/jsx-closing-bracket-location': ['warn'],
67+
'react-hooks/rules-of-hooks': ['warn'],
68+
'react-hooks/exhaustive-deps': ['warn'],
3669
'@typescript-eslint/member-ordering': 'off',
3770
'@typescript-eslint/no-empty-object-type': 'off',
3871
'@typescript-eslint/no-unused-vars': 'warn',
72+
'import/no-named-as-default': 'off',
3973
'import/no-unresolved': 'off',
4074
'import/named': 'off',
4175
'import/order': ['warn', {

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module.exports = {
1818
'^.+\\.tsx?$': 'babel-jest'
1919
},
2020
moduleNameMapper: {
21-
// eslint-disable-next-line max-len
2221
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/test/__mocks__/fileMock.js',
2322
'\\.(css|less|scss)$': '<rootDir>/test/__mocks__/styleMock.js',
2423
'shogunApplicationConfig': '<rootDir>/assets/fallbackConfig.js'

0 commit comments

Comments
 (0)