Skip to content

Commit d25149b

Browse files
committed
update dependencies and some configs
1 parent 7e37ecd commit d25149b

File tree

15 files changed

+1057
-877
lines changed

15 files changed

+1057
-877
lines changed

.eslintrc.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,18 @@
2222
"react-hooks/rules-of-hooks": "error",
2323
"react-hooks/exhaustive-deps": "error",
2424
"@typescript-eslint/explicit-function-return-type": "off",
25-
"@typescript-eslint/indent": ["error", 2],
26-
"@typescript-eslint/prefer-interface": "off",
2725
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".tsx"] }],
2826
"react/prop-types": "off",
2927
"react/jsx-one-expression-per-line": "off",
3028
"import/prefer-default-export": "off",
3129
"import/no-unresolved": ["error", { "ignore": ["reactive-react-redux"] }],
3230
"no-param-reassign": "off",
33-
"default-case": "off",
3431
"arrow-body-style": "off",
3532
"no-plusplus": "off",
36-
"import/no-useless-path-segments": 0,
37-
"import/no-duplicates": "off"
33+
"import/no-duplicates": "off",
34+
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
35+
"prefer-object-spread": "off",
36+
"default-case": "off"
3837
},
3938
"overrides": [{
4039
"files": ["__tests__/**/*"],

examples/02_typescript/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
34
// @ts-ignore
45
unstable_createRoot as createRoot,
56
} from 'react-dom';

examples/03_deep/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
34
// @ts-ignore
45
unstable_createRoot as createRoot,
56
} from 'react-dom';

examples/04_immer/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
34
// @ts-ignore
45
unstable_createRoot as createRoot,
56
} from 'react-dom';

examples/05_localstate/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
34
// @ts-ignore
45
unstable_createRoot as createRoot,
56
} from 'react-dom';

examples/06_memoization/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
34
// @ts-ignore
45
unstable_createRoot as createRoot,
56
} from 'react-dom';

examples/07_multistore/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
34
// @ts-ignore
45
unstable_createRoot as createRoot,
56
} from 'react-dom';

examples/08_dynamic/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
34
// @ts-ignore
45
unstable_createRoot as createRoot,
56
} from 'react-dom';

examples/09_thunk/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22
import {
3+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
34
// @ts-ignore
45
unstable_createRoot as createRoot,
56
} from 'react-dom';

examples/11_todolist/src/components/VisibleTodoList.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable react/jsx-props-no-spreading */
2+
13
import * as React from 'react';
24
import { useTrackedState } from 'reactive-react-redux';
35

0 commit comments

Comments
 (0)