Skip to content

Commit ef3f1c5

Browse files
authored
Merge branch 'main' into main
2 parents c4f82c0 + 61c09e1 commit ef3f1c5

File tree

345 files changed

+18291
-16487
lines changed

Some content is hidden

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

345 files changed

+18291
-16487
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717
- uses: nrwl/nx-set-shas@v4
18-
- uses: pnpm/action-setup@v2
18+
- uses: pnpm/action-setup@v4
1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: 'lts/*'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1919
fetch-depth: 0
2020

21-
- uses: pnpm/action-setup@v2
21+
- uses: pnpm/action-setup@v4
2222

2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ coverage
99
.idea
1010
.eslintcache
1111
!packages/redux-devtools-slider-monitor/examples/todomvc/dist/index.html
12-
.nx/cache
12+
.nx

eslint.js.config.base.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import eslint from '@eslint/js';
2+
import eslintConfigPrettier from 'eslint-config-prettier';
3+
4+
export default [eslint.configs.recommended, eslintConfigPrettier];

eslint.ts.config.base.mjs

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import eslintConfigPrettier from 'eslint-config-prettier';
4+
5+
export default (tsconfigRootDir, files = ['**/*.ts'], project = true) => [
6+
{
7+
files,
8+
...eslint.configs.recommended,
9+
},
10+
...tseslint.configs.recommendedTypeChecked.map((config) => ({
11+
files,
12+
...config,
13+
})),
14+
...tseslint.configs.stylisticTypeChecked.map((config) => ({
15+
files,
16+
...config,
17+
})),
18+
{
19+
files,
20+
languageOptions: {
21+
parserOptions: {
22+
project,
23+
tsconfigRootDir,
24+
},
25+
},
26+
},
27+
{
28+
files,
29+
...eslintConfigPrettier,
30+
},
31+
{
32+
files,
33+
rules: {
34+
'@typescript-eslint/no-unsafe-return': 'off',
35+
'@typescript-eslint/no-unsafe-assignment': 'off',
36+
'@typescript-eslint/no-unsafe-call': 'off',
37+
'@typescript-eslint/no-unsafe-member-access': 'off',
38+
'@typescript-eslint/prefer-optional-chain': 'off',
39+
'@typescript-eslint/no-base-to-string': 'off',
40+
'@typescript-eslint/consistent-indexed-object-style': 'off',
41+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
42+
'@typescript-eslint/consistent-type-definitions': 'off',
43+
'@typescript-eslint/no-unused-vars': 'off',
44+
'@typescript-eslint/no-explicit-any': 'off',
45+
'@typescript-eslint/prefer-for-of': 'off',
46+
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
47+
'@typescript-eslint/class-literal-property-style': 'off',
48+
'@typescript-eslint/no-redundant-type-constituents': 'off',
49+
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
50+
'@typescript-eslint/no-duplicate-type-constituents': 'off',
51+
'@typescript-eslint/array-type': 'off',
52+
'@typescript-eslint/prefer-function-type': 'off',
53+
},
54+
},
55+
];

eslint.ts.jest.config.base.mjs

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import jest from 'eslint-plugin-jest';
4+
import eslintConfigPrettier from 'eslint-config-prettier';
5+
6+
export default (tsconfigRootDir) => [
7+
{
8+
files: ['test/**/*.ts'],
9+
...eslint.configs.recommended,
10+
},
11+
...tseslint.configs.recommendedTypeChecked.map((config) => ({
12+
files: ['test/**/*.ts'],
13+
...config,
14+
})),
15+
...tseslint.configs.stylisticTypeChecked.map((config) => ({
16+
files: ['test/**/*.ts'],
17+
...config,
18+
})),
19+
{
20+
files: ['test/**/*.ts'],
21+
languageOptions: {
22+
parserOptions: {
23+
project: ['./tsconfig.test.json'],
24+
tsconfigRootDir,
25+
},
26+
},
27+
},
28+
{
29+
files: ['test/**/*.ts'],
30+
...jest.configs['flat/recommended'],
31+
},
32+
{
33+
files: ['test/**/*.ts'],
34+
...jest.configs['jest/style'],
35+
},
36+
{
37+
files: ['test/**/*.ts'],
38+
...eslintConfigPrettier,
39+
},
40+
{
41+
files: ['test/**/*.ts'],
42+
rules: {
43+
'@typescript-eslint/no-unsafe-return': 'off',
44+
'@typescript-eslint/no-unsafe-assignment': 'off',
45+
'@typescript-eslint/no-unsafe-call': 'off',
46+
'@typescript-eslint/no-unsafe-member-access': 'off',
47+
'@typescript-eslint/prefer-optional-chain': 'off',
48+
'@typescript-eslint/no-base-to-string': 'off',
49+
'@typescript-eslint/consistent-indexed-object-style': 'off',
50+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
51+
'@typescript-eslint/consistent-type-definitions': 'off',
52+
'@typescript-eslint/no-unused-vars': 'off',
53+
'@typescript-eslint/no-explicit-any': 'off',
54+
'@typescript-eslint/prefer-for-of': 'off',
55+
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
56+
'@typescript-eslint/class-literal-property-style': 'off',
57+
'@typescript-eslint/no-redundant-type-constituents': 'off',
58+
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
59+
'@typescript-eslint/no-duplicate-type-constituents': 'off',
60+
'@typescript-eslint/array-type': 'off',
61+
'@typescript-eslint/prefer-function-type': 'off',
62+
},
63+
},
64+
];

eslint.ts.react.config.base.mjs

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import react from 'eslint-plugin-react';
4+
import { fixupPluginRules } from '@eslint/compat';
5+
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
6+
import eslintConfigPrettier from 'eslint-config-prettier';
7+
8+
export default (
9+
tsconfigRootDir,
10+
files = ['**/*.ts', '**/*.tsx'],
11+
project = true,
12+
) => [
13+
{
14+
files,
15+
...eslint.configs.recommended,
16+
},
17+
...tseslint.configs.recommendedTypeChecked.map((config) => ({
18+
files,
19+
...config,
20+
})),
21+
...tseslint.configs.stylisticTypeChecked.map((config) => ({
22+
files,
23+
...config,
24+
})),
25+
{
26+
files,
27+
languageOptions: {
28+
parserOptions: {
29+
project,
30+
tsconfigRootDir,
31+
},
32+
},
33+
},
34+
{
35+
files,
36+
...react.configs.flat.recommended,
37+
},
38+
{
39+
files,
40+
settings: {
41+
react: {
42+
version: 'detect',
43+
},
44+
},
45+
},
46+
{
47+
files,
48+
plugins: {
49+
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
50+
},
51+
},
52+
{
53+
files,
54+
...eslintConfigPrettier,
55+
},
56+
{
57+
files,
58+
rules: {
59+
'@typescript-eslint/no-unsafe-return': 'off',
60+
'@typescript-eslint/no-unsafe-assignment': 'off',
61+
'@typescript-eslint/no-unsafe-call': 'off',
62+
'@typescript-eslint/no-unsafe-member-access': 'off',
63+
'@typescript-eslint/no-misused-promises': [
64+
'error',
65+
{
66+
checksVoidReturn: {
67+
attributes: false,
68+
},
69+
},
70+
],
71+
'@typescript-eslint/prefer-optional-chain': 'off',
72+
'@typescript-eslint/no-base-to-string': 'off',
73+
'@typescript-eslint/consistent-indexed-object-style': 'off',
74+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
75+
'@typescript-eslint/consistent-type-definitions': 'off',
76+
'@typescript-eslint/no-unused-vars': 'off',
77+
'@typescript-eslint/no-explicit-any': 'off',
78+
'@typescript-eslint/prefer-for-of': 'off',
79+
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
80+
'@typescript-eslint/class-literal-property-style': 'off',
81+
'@typescript-eslint/no-redundant-type-constituents': 'off',
82+
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
83+
'@typescript-eslint/no-duplicate-type-constituents': 'off',
84+
'@typescript-eslint/array-type': 'off',
85+
'@typescript-eslint/prefer-function-type': 'off',
86+
'react/prop-types': 'off',
87+
},
88+
},
89+
];

eslint.ts.react.jest.config.base.mjs

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import react from 'eslint-plugin-react';
4+
import { fixupPluginRules } from '@eslint/compat';
5+
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
6+
import jest from 'eslint-plugin-jest';
7+
import eslintConfigPrettier from 'eslint-config-prettier';
8+
9+
export default (tsconfigRootDir) => [
10+
{
11+
files: ['test/**/*.ts', 'test/**/*.tsx'],
12+
...eslint.configs.recommended,
13+
},
14+
...tseslint.configs.recommendedTypeChecked.map((config) => ({
15+
files: ['test/**/*.ts', 'test/**/*.tsx'],
16+
...config,
17+
})),
18+
...tseslint.configs.stylisticTypeChecked.map((config) => ({
19+
files: ['test/**/*.ts', 'test/**/*.tsx'],
20+
...config,
21+
})),
22+
{
23+
files: ['test/**/*.ts', 'test/**/*.tsx'],
24+
languageOptions: {
25+
parserOptions: {
26+
project: ['./tsconfig.test.json'],
27+
tsconfigRootDir,
28+
},
29+
},
30+
},
31+
{
32+
files: ['test/**/*.ts', 'test/**/*.tsx'],
33+
...react.configs.flat.recommended,
34+
},
35+
{
36+
files: ['test/**/*.ts', 'test/**/*.tsx'],
37+
settings: {
38+
react: {
39+
version: 'detect',
40+
},
41+
},
42+
},
43+
{
44+
files: ['test/**/*.ts', 'test/**/*.tsx'],
45+
plugins: {
46+
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
47+
},
48+
},
49+
{
50+
files: ['test/**/*.ts', 'test/**/*.tsx'],
51+
...jest.configs['flat/recommended'],
52+
},
53+
{
54+
files: ['test/**/*.ts', 'test/**/*.tsx'],
55+
...jest.configs['jest/style'],
56+
},
57+
{
58+
files: ['test/**/*.ts', 'test/**/*.tsx'],
59+
...eslintConfigPrettier,
60+
},
61+
{
62+
files: ['test/**/*.ts', 'test/**/*.tsx'],
63+
rules: {
64+
'@typescript-eslint/no-unsafe-return': 'off',
65+
'@typescript-eslint/no-unsafe-assignment': 'off',
66+
'@typescript-eslint/no-unsafe-call': 'off',
67+
'@typescript-eslint/no-unsafe-member-access': 'off',
68+
'@typescript-eslint/prefer-optional-chain': 'off',
69+
'@typescript-eslint/no-base-to-string': 'off',
70+
'@typescript-eslint/consistent-indexed-object-style': 'off',
71+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
72+
'@typescript-eslint/consistent-type-definitions': 'off',
73+
'@typescript-eslint/no-unused-vars': 'off',
74+
'@typescript-eslint/no-explicit-any': 'off',
75+
'@typescript-eslint/prefer-for-of': 'off',
76+
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
77+
'@typescript-eslint/class-literal-property-style': 'off',
78+
'@typescript-eslint/no-redundant-type-constituents': 'off',
79+
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
80+
'@typescript-eslint/no-duplicate-type-constituents': 'off',
81+
'@typescript-eslint/array-type': 'off',
82+
'@typescript-eslint/prefer-function-type': 'off',
83+
},
84+
},
85+
];

eslintrc.js.base.json

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

eslintrc.ts.base.json

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

eslintrc.ts.jest.base.json

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

0 commit comments

Comments
 (0)