Skip to content

Commit c64d0eb

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 4b3533c commit c64d0eb

File tree

57 files changed

+6301
-4281
lines changed

Some content is hidden

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

57 files changed

+6301
-4281
lines changed

.eslintignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 37 deletions
This file was deleted.

babel.config.cjs

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/proposal-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: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// @ts-check
2+
import globals from 'globals';
3+
import reactHooks from 'eslint-plugin-react-hooks';
4+
import importPlugin from 'eslint-plugin-import';
5+
import eslintReact from 'eslint-plugin-react';
6+
import eslintTerrestris from '@terrestris/eslint-config-typescript';
7+
import eslint from '@eslint/js';
8+
import tsEslint from 'typescript-eslint';
9+
import stylisticEslint from '@stylistic/eslint-plugin'
10+
11+
export default tsEslint.config({
12+
extends: [
13+
eslint.configs.recommended,
14+
...tsEslint.configs.recommended,
15+
...tsEslint.configs.stylistic,
16+
importPlugin.flatConfigs.recommended
17+
],
18+
files: [
19+
'**/*.{ts,tsx}',
20+
],
21+
ignores: [
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*}'
29+
],
30+
languageOptions: {
31+
ecmaVersion: 2020,
32+
globals: globals.browser,
33+
parserOptions: {
34+
project: true,
35+
tsconfigRootDir: import.meta.dirname
36+
}
37+
},
38+
plugins: {
39+
'react-hooks': reactHooks,
40+
'@stylistic': stylisticEslint,
41+
react: eslintReact
42+
},
43+
rules: {
44+
...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'],
69+
'@typescript-eslint/member-ordering': 'off',
70+
'@typescript-eslint/no-empty-object-type': 'off',
71+
'@typescript-eslint/no-unused-vars': 'warn',
72+
'import/no-named-as-default': 'off',
73+
'import/no-unresolved': 'off',
74+
'import/named': 'off',
75+
'import/order': ['warn', {
76+
groups: [
77+
'builtin',
78+
'external',
79+
'parent',
80+
'sibling',
81+
'index',
82+
'object'
83+
],
84+
pathGroups: [{
85+
pattern: 'react',
86+
group: 'external',
87+
position: 'before'
88+
}, {
89+
pattern: '@terrestris/**',
90+
group: 'external',
91+
position: 'after'
92+
}],
93+
pathGroupsExcludedImportTypes: ['react'],
94+
'newlines-between': 'always-and-inside-groups',
95+
alphabetize: {
96+
order: 'asc',
97+
caseInsensitive: true
98+
}
99+
}]
100+
}
101+
});

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default {
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)