Skip to content

Commit bd463b1

Browse files
chore(deps): update typescript-eslint monorepo to v8 (major) (reduxjs#1710)
* chore(deps): update typescript-eslint monorepo to v8 * instrument * react-base16-styling * Disable react/prop-types * react-json-tree * redux-devtools-ui * inspector-monitor * react-dock * log-monitor * map2tree * d3-state-visualizer * test-tab * rtk-query-monitor * slider-monitor * trace-tab * chart-monitor * app-core * utils * test-tab-demo * inspector-monitor-demo * redux-devtools-counter-demo * redux-devtools-todomvc-demo * remote * cli * react-dock-demo --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathan Bierema <[email protected]>
1 parent 0462470 commit bd463b1

File tree

84 files changed

+421
-371
lines changed

Some content is hidden

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

84 files changed

+421
-371
lines changed

eslintrc.ts.react.base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@typescript-eslint/prefer-string-starts-ends-with": "off",
4747
"@typescript-eslint/no-duplicate-type-constituents": "off",
4848
"@typescript-eslint/array-type": "off",
49-
"@typescript-eslint/prefer-function-type": "off"
49+
"@typescript-eslint/prefer-function-type": "off",
50+
"react/prop-types": "off"
5051
}
5152
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"@babel/eslint-parser": "^7.24.8",
66
"@changesets/cli": "^2.27.7",
77
"@nrwl/nx-cloud": "^19.0.0",
8-
"@typescript-eslint/eslint-plugin": "^7.16.1",
9-
"@typescript-eslint/parser": "^7.16.1",
8+
"@typescript-eslint/eslint-plugin": "^8.0.0",
9+
"@typescript-eslint/parser": "^8.0.0",
1010
"eslint": "^8.57.0",
1111
"eslint-config-prettier": "^9.1.0",
1212
"eslint-plugin-jest": "^28.6.0",

packages/d3-state-visualizer/examples/tree/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"@babel/preset-env": "^7.24.8",
3434
"@babel/preset-typescript": "^7.24.7",
3535
"@types/node": "^20.14.11",
36-
"@typescript-eslint/eslint-plugin": "^7.16.1",
37-
"@typescript-eslint/parser": "^7.16.1",
36+
"@typescript-eslint/eslint-plugin": "^8.0.0",
37+
"@typescript-eslint/parser": "^8.0.0",
3838
"babel-loader": "^9.1.3",
3939
"cross-env": "^7.0.3",
4040
"eslint": "^8.57.0",

packages/d3-state-visualizer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
},
4747
"devDependencies": {
4848
"@types/ramda": "^0.30.1",
49-
"@typescript-eslint/eslint-plugin": "^7.16.1",
50-
"@typescript-eslint/parser": "^7.16.1",
49+
"@typescript-eslint/eslint-plugin": "^8.0.0",
50+
"@typescript-eslint/parser": "^8.0.0",
5151
"eslint": "^8.57.0",
5252
"eslint-config-prettier": "^9.1.0",
5353
"rimraf": "^6.0.1",

packages/d3-state-visualizer/src/charts/tree/tree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import { tooltip } from 'd3tooltip';
1414
import type { StyleValue } from 'd3tooltip';
1515

1616
export interface Options {
17-
// eslint-disable-next-line @typescript-eslint/ban-types
17+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
1818
state?: {} | null;
19-
// eslint-disable-next-line @typescript-eslint/ban-types
19+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
2020
tree?: Node | {};
2121

2222
rootKeyName: string;

packages/d3tooltip/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
},
3535
"devDependencies": {
3636
"@types/d3": "^7.4.3",
37-
"@typescript-eslint/eslint-plugin": "^7.16.1",
38-
"@typescript-eslint/parser": "^7.16.1",
37+
"@typescript-eslint/eslint-plugin": "^8.0.0",
38+
"@typescript-eslint/parser": "^8.0.0",
3939
"d3": "^7.9.0",
4040
"eslint": "^8.57.0",
4141
"eslint-config-prettier": "^9.1.0",

packages/map2tree/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"devDependencies": {
4343
"@types/jest": "^29.5.12",
4444
"@types/lodash-es": "^4.17.12",
45-
"@typescript-eslint/eslint-plugin": "^7.16.1",
46-
"@typescript-eslint/parser": "^7.16.1",
45+
"@typescript-eslint/eslint-plugin": "^8.0.0",
46+
"@typescript-eslint/parser": "^8.0.0",
4747
"eslint": "^8.57.0",
4848
"eslint-config-prettier": "^9.1.0",
4949
"eslint-plugin-jest": "^28.6.0",

packages/map2tree/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export function map2tree(
4545
root: unknown,
4646
options: { key?: string; pushMethod?: 'push' | 'unshift' } = {},
4747
tree: Node = { name: options.key || 'state', children: [] },
48-
// eslint-disable-next-line @typescript-eslint/ban-types
48+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
4949
): Node | {} {
50-
// eslint-disable-next-line @typescript-eslint/ban-types
50+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
5151
if (!isPlainObject(root) && root && !(root as { toJS: () => {} }).toJS) {
5252
return {};
5353
}
@@ -60,13 +60,13 @@ export function map2tree(
6060
}
6161

6262
mapValues(
63-
// eslint-disable-next-line @typescript-eslint/ban-types
63+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
6464
root && (root as { toJS: () => {} }).toJS
65-
? // eslint-disable-next-line @typescript-eslint/ban-types
65+
? // eslint-disable-next-line @typescript-eslint/no-empty-object-type
6666
(root as { toJS: () => {} }).toJS()
67-
: // eslint-disable-next-line @typescript-eslint/ban-types
67+
: // eslint-disable-next-line @typescript-eslint/no-empty-object-type
6868
(root as {}),
69-
// eslint-disable-next-line @typescript-eslint/ban-types
69+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
7070
(maybeImmutable: { toJS?: () => {} }, key) => {
7171
const value =
7272
maybeImmutable && maybeImmutable.toJS

packages/react-base16-styling/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"@types/color": "^3.0.6",
4646
"@types/jest": "^29.5.12",
4747
"@types/lodash-es": "^4.17.12",
48-
"@typescript-eslint/eslint-plugin": "^7.16.1",
49-
"@typescript-eslint/parser": "^7.16.1",
48+
"@typescript-eslint/eslint-plugin": "^8.0.0",
49+
"@typescript-eslint/parser": "^8.0.0",
5050
"eslint": "^8.57.0",
5151
"eslint-config-prettier": "^9.1.0",
5252
"eslint-plugin-jest": "^28.6.0",

packages/react-base16-styling/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const mergeStylings = (
126126
): StylingConfig => {
127127
const keys = Object.keys(defaultStylings);
128128
for (const key in customStylings) {
129-
if (keys.indexOf(key) === -1) keys.push(key);
129+
if (!keys.includes(key)) keys.push(key);
130130
}
131131

132132
return keys.reduce(
@@ -241,7 +241,7 @@ export const createStyling: CurriedFunction3<
241241

242242
const customStyling = Object.keys(themeOrStyling).reduce(
243243
(s, key) =>
244-
BASE16_KEYS.indexOf(key) === -1
244+
!BASE16_KEYS.includes(key)
245245
? ((s[key] = (themeOrStyling as StylingConfig)[key]), s)
246246
: s,
247247
{} as StylingConfig,

0 commit comments

Comments
 (0)