Skip to content

Commit e6a1fc7

Browse files
committed
chore: upgrade toolchain
1 parent dd380da commit e6a1fc7

18 files changed

+7139
-6224
lines changed

.eslintrc.cjs

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

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<PROJECT_ROOT>/node_modules/.*/resolve/.*
1010
<PROJECT_ROOT>/dist/.*
1111
.*/malformed_package_json/.*
12+
.*/node_modules/.*/hermes-.*/.*
1213

1314
[include]
1415
./src

demo/.eslintrc

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

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22

33
<html lang="en">
44
<head>

eslint.config.cjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const { defineConfig } = require('eslint/config')
2+
const globals = require('globals')
3+
4+
module.exports = defineConfig([
5+
...require('@jcoreio/toolchain/eslintConfig.cjs'),
6+
{
7+
files: ['test/**'],
8+
languageOptions: {
9+
globals: {
10+
...globals.browser,
11+
...globals.mocha,
12+
...globals.node,
13+
},
14+
},
15+
},
16+
{
17+
files: ['demo/**'],
18+
languageOptions: {
19+
globals: {
20+
...globals.browser,
21+
...globals.commonjs,
22+
},
23+
},
24+
rules: {
25+
'react/prop-types': 0,
26+
},
27+
},
28+
])

flow-typed/npm/react-dom_v16.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ declare module 'react-dom' {
3535
e: E
3636
): void
3737
declare function unstable_renderSubtreeIntoContainer<
38-
ElementType: React$ElementType
38+
ElementType: React$ElementType,
3939
>(
4040
parentComponent: React$Component<any, any>,
4141
nextElement: React$Element<ElementType>,

flow-typed/npm/webpack_v4.x.x.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ declare module 'webpack' {
9393
request: string,
9494
callback: (err?: Error, result?: string) => void
9595
) => void)
96-
| ExternalItem
96+
| ExternalItem,
9797
>
9898

9999
declare type RuleSetCondition =
@@ -622,14 +622,17 @@ declare module 'webpack' {
622622
env: { [string]: mixed, ... } | string[]
623623
): $ElementType<
624624
$NonMaybeType<$PropertyType<ResolveOptions, 'plugins'>>,
625-
number
625+
number,
626626
>;
627627
}
628628

629629
declare class DefinePlugin {
630-
constructor({ [string]: string, ... }): $ElementType<
630+
constructor({
631+
[string]: string,
632+
...
633+
}): $ElementType<
631634
$NonMaybeType<$PropertyType<ResolveOptions, 'plugins'>>,
632-
number
635+
number,
633636
>;
634637
}
635638

@@ -643,7 +646,7 @@ declare module 'webpack' {
643646
void | RegExp
644647
): $ElementType<
645648
$NonMaybeType<$PropertyType<ResolveOptions, 'plugins'>>,
646-
number
649+
number,
647650
>;
648651
}
649652

@@ -672,14 +675,14 @@ declare module 'webpack' {
672675
fileContext?: ?string,
673676
|}): $ElementType<
674677
$NonMaybeType<$PropertyType<ResolveOptions, 'plugins'>>,
675-
number
678+
number,
676679
>;
677680
}
678681

679682
declare class HotModuleReplacementPlugin {
680683
constructor(): $ElementType<
681684
$NonMaybeType<$PropertyType<ResolveOptions, 'plugins'>>,
682-
number
685+
number,
683686
>;
684687
}
685688

@@ -689,7 +692,7 @@ declare module 'webpack' {
689692
newContentRegExp?: RegExp
690693
): $ElementType<
691694
$NonMaybeType<$PropertyType<ResolveOptions, 'plugins'>>,
692-
number
695+
number,
693696
>;
694697
}
695698

package.json

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@
3535
"devDependencies": {
3636
"@babel/eslint-parser": "^7.19.1",
3737
"@babel/node": "^7.20.5",
38-
"@babel/plugin-syntax-flow": "^7.14.5",
39-
"@babel/plugin-transform-react-jsx": "^7.14.9",
38+
"@babel/plugin-syntax-flow": "^7.26.0",
39+
"@babel/plugin-transform-react-jsx": "^7.25.9",
4040
"@emotion/react": "^11.14.0",
4141
"@emotion/styled": "^11.14.0",
4242
"@jcoreio/eslint-plugin-implicit-dependencies": "^1.1.1",
43-
"@jcoreio/toolchain": "^4.12.4",
44-
"@jcoreio/toolchain-circle": "^4.12.4",
45-
"@jcoreio/toolchain-esnext": "^4.12.4",
46-
"@jcoreio/toolchain-flow": "^4.12.4",
47-
"@jcoreio/toolchain-mocha": "^4.12.4",
48-
"@jcoreio/toolchain-react": "^4.12.4",
49-
"@jcoreio/toolchain-semantic-release": "^4.12.4",
50-
"@jcoreio/toolchain-typescript": "^4.12.4",
43+
"@jcoreio/toolchain": "^5.3.2",
44+
"@jcoreio/toolchain-circle": "^5.3.2",
45+
"@jcoreio/toolchain-esnext": "^5.3.2",
46+
"@jcoreio/toolchain-flow": "^5.3.2",
47+
"@jcoreio/toolchain-mocha": "^5.3.2",
48+
"@jcoreio/toolchain-react": "^5.3.2",
49+
"@jcoreio/toolchain-semantic-release": "^5.3.2",
50+
"@jcoreio/toolchain-typescript": "^5.3.2",
5151
"@mui/icons-material": "^7.0.1",
5252
"@mui/material": "^7.0.1",
5353
"@mui/types": "^7.4.0",
@@ -65,17 +65,20 @@
6565
"copy": "^0.3.2",
6666
"core-js": "^3.36.1",
6767
"cross-env": "^7.0.3",
68-
"eslint": "^8.56.0",
68+
"eslint": "^9.17.0",
6969
"eslint-config-prettier": "^7.2.0",
7070
"eslint-plugin-flowtype": "^8.0.3",
7171
"eslint-plugin-no-only-tests": "^3.1.0",
7272
"eslint-plugin-react": "^7.32.2",
7373
"flow-bin": "^0.145.0",
7474
"gh-pages": "^2.0.1",
7575
"glob": "^8.0.3",
76-
"global-jsdom": "^25.0.0",
77-
"jsdom": "^25.0.1",
76+
"global-jsdom": "^9.0.1",
77+
"globals": "^16.0.0",
78+
"jsdom": "^22.1.0",
79+
"lint-staged": "^15.2.2",
7880
"mocha": "^10.2.0",
81+
"prettier": "^3.4.2",
7982
"raw-loader": "^4.0.2",
8083
"react": "^19.0.0",
8184
"react-dom": "^19.0.0",
@@ -87,7 +90,7 @@
8790
"webpack-dev-server": "^4.11.1"
8891
},
8992
"dependencies": {
90-
"@babel/runtime": "^7.20.6",
93+
"@babel/runtime": "^7.26.0",
9194
"@types/prop-types": "^15.7.3",
9295
"classnames": "^2.2.6",
9396
"prop-types": "^15.7.2"
@@ -141,8 +144,8 @@
141144
"engines": {
142145
"node": ">=16"
143146
},
144-
"packageManager": "pnpm@8.11.0",
147+
"packageManager": "pnpm@10.6.5",
145148
"@jcoreio/toolchain": {
146-
"migratedVersion": "4.12.4"
149+
"migratedVersion": "5.3.2"
147150
}
148151
}

0 commit comments

Comments
 (0)