Skip to content

Commit 894ae3f

Browse files
committed
chore: Update TypeScript and ESLint versions in compile-js plugin
1 parent 388d9cf commit 894ae3f

File tree

3 files changed

+82
-10
lines changed

3 files changed

+82
-10
lines changed

template/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@types/node": "^18.14.1",
5050
"@types/react": "^18.2.6",
5151
"@types/react-test-renderer": "^18.0.0",
52+
"@typescript-eslint/eslint-plugin": "7.1.1",
5253
"@typescript-eslint/parser": "^6.13.1",
5354
"babel-jest": "^29.6.3",
5455
"babel-plugin-inline-dotenv": "^1.7.0",

template/plugins/compile-js/plugin.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { execSync } = require('child_process');
22

33
const TYPESCRIPT_VERSION = '5.6.2';
4-
const TYPESCRIPT_ESLINT_VERSION = '7.1.1';
54

65
function isYarnAvailable() {
76
try {
@@ -63,6 +62,8 @@ module.exports = {
6362
console.log('♻️ Replacing source...');
6463
execSync('rm -rf src', { stdio: 'pipe' });
6564
execSync('cp -R js/src ./src', { stdio: 'pipe' });
65+
execSync('rm -rf __mocks__', { stdio: 'pipe' });
66+
execSync('cp -R js/__mocks__ ./__mocks__', { stdio: 'pipe' });
6667
execSync('rm -rf js', { stdio: 'pipe' });
6768
} catch (error) {
6869
console.error(
@@ -77,11 +78,6 @@ module.exports = {
7778
execSync('rm -f src/navigations/types.js', { stdio: 'pipe' });
7879
}
7980

80-
// FIXME: This is a temporary solution to fix the eslint issue
81-
execSync(
82-
`${packageManager} add -D @typescript-eslint/eslint-plugin@${TYPESCRIPT_VERSION}`,
83-
);
84-
8581
resolve();
8682
});
8783
},

template/yarn.lock

Lines changed: 79 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@
11241124
dependencies:
11251125
eslint-visitor-keys "^3.3.0"
11261126

1127-
"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.6.1":
1127+
"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.5.1", "@eslint-community/regexpp@^4.6.1":
11281128
version "4.11.1"
11291129
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.1.tgz#a547badfc719eb3e5f4b556325e542fbe9d7a18f"
11301130
integrity sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==
@@ -2106,7 +2106,7 @@
21062106
expect "^29.0.0"
21072107
pretty-format "^29.0.0"
21082108

2109-
"@types/json-schema@^7.0.9":
2109+
"@types/json-schema@^7.0.12", "@types/json-schema@^7.0.9":
21102110
version "7.0.15"
21112111
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
21122112
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
@@ -2162,7 +2162,7 @@
21622162
"@types/prop-types" "*"
21632163
csstype "^3.0.2"
21642164

2165-
"@types/semver@^7.3.12":
2165+
"@types/semver@^7.3.12", "@types/semver@^7.5.0":
21662166
version "7.5.8"
21672167
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.8.tgz#8268a8c57a3e4abd25c165ecd36237db7948a55e"
21682168
integrity sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==
@@ -2191,6 +2191,23 @@
21912191
dependencies:
21922192
"@types/yargs-parser" "*"
21932193

2194+
"@typescript-eslint/[email protected]":
2195+
version "7.1.1"
2196+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.1.1.tgz#dd71fc5c7ecec745ca26ece506d84d203a205c0e"
2197+
integrity sha512-zioDz623d0RHNhvx0eesUmGfIjzrk18nSBC8xewepKXbBvN/7c1qImV7Hg8TI1URTxKax7/zxfxj3Uph8Chcuw==
2198+
dependencies:
2199+
"@eslint-community/regexpp" "^4.5.1"
2200+
"@typescript-eslint/scope-manager" "7.1.1"
2201+
"@typescript-eslint/type-utils" "7.1.1"
2202+
"@typescript-eslint/utils" "7.1.1"
2203+
"@typescript-eslint/visitor-keys" "7.1.1"
2204+
debug "^4.3.4"
2205+
graphemer "^1.4.0"
2206+
ignore "^5.2.4"
2207+
natural-compare "^1.4.0"
2208+
semver "^7.5.4"
2209+
ts-api-utils "^1.0.1"
2210+
21942211
"@typescript-eslint/eslint-plugin@^7.1.1":
21952212
version "7.18.0"
21962213
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz#b16d3cf3ee76bf572fdf511e79c248bdec619ea3"
@@ -2251,6 +2268,14 @@
22512268
"@typescript-eslint/types" "6.21.0"
22522269
"@typescript-eslint/visitor-keys" "6.21.0"
22532270

2271+
"@typescript-eslint/[email protected]":
2272+
version "7.1.1"
2273+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.1.1.tgz#9e301803ff8e21a74f50c6f89a4baccad9a48f93"
2274+
integrity sha512-cirZpA8bJMRb4WZ+rO6+mnOJrGFDd38WoXCEI57+CYBqta8Yc8aJym2i7vyqLL1vVYljgw0X27axkUXz32T8TA==
2275+
dependencies:
2276+
"@typescript-eslint/types" "7.1.1"
2277+
"@typescript-eslint/visitor-keys" "7.1.1"
2278+
22542279
"@typescript-eslint/[email protected]":
22552280
version "7.18.0"
22562281
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz#c928e7a9fc2c0b3ed92ab3112c614d6bd9951c83"
@@ -2267,6 +2292,16 @@
22672292
"@typescript-eslint/types" "8.8.1"
22682293
"@typescript-eslint/visitor-keys" "8.8.1"
22692294

2295+
"@typescript-eslint/[email protected]":
2296+
version "7.1.1"
2297+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.1.1.tgz#aee820d5bedd39b83c18585a526cc520ddb7a226"
2298+
integrity sha512-5r4RKze6XHEEhlZnJtR3GYeCh1IueUHdbrukV2KSlLXaTjuSfeVF8mZUVPLovidCuZfbVjfhi4c0DNSa/Rdg5g==
2299+
dependencies:
2300+
"@typescript-eslint/typescript-estree" "7.1.1"
2301+
"@typescript-eslint/utils" "7.1.1"
2302+
debug "^4.3.4"
2303+
ts-api-utils "^1.0.1"
2304+
22702305
"@typescript-eslint/[email protected]":
22712306
version "7.18.0"
22722307
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz#2165ffaee00b1fbbdd2d40aa85232dab6998f53b"
@@ -2287,6 +2322,11 @@
22872322
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.21.0.tgz#205724c5123a8fef7ecd195075fa6e85bac3436d"
22882323
integrity sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==
22892324

2325+
"@typescript-eslint/[email protected]":
2326+
version "7.1.1"
2327+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.1.1.tgz#ca33ba7cf58224fb46a84fea62593c2c53cd795f"
2328+
integrity sha512-KhewzrlRMrgeKm1U9bh2z5aoL4s7K3tK5DwHDn8MHv0yQfWFz/0ZR6trrIHHa5CsF83j/GgHqzdbzCXJ3crx0Q==
2329+
22902330
"@typescript-eslint/[email protected]":
22912331
version "7.18.0"
22922332
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.18.0.tgz#b90a57ccdea71797ffffa0321e744f379ec838c9"
@@ -2324,6 +2364,20 @@
23242364
semver "^7.5.4"
23252365
ts-api-utils "^1.0.1"
23262366

2367+
"@typescript-eslint/[email protected]":
2368+
version "7.1.1"
2369+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.1.1.tgz#09c54af0151a1b05d0875c0fc7fe2ec7a2476ece"
2370+
integrity sha512-9ZOncVSfr+sMXVxxca2OJOPagRwT0u/UHikM2Rd6L/aB+kL/QAuTnsv6MeXtjzCJYb8PzrXarypSGIPx3Jemxw==
2371+
dependencies:
2372+
"@typescript-eslint/types" "7.1.1"
2373+
"@typescript-eslint/visitor-keys" "7.1.1"
2374+
debug "^4.3.4"
2375+
globby "^11.1.0"
2376+
is-glob "^4.0.3"
2377+
minimatch "9.0.3"
2378+
semver "^7.5.4"
2379+
ts-api-utils "^1.0.1"
2380+
23272381
"@typescript-eslint/[email protected]":
23282382
version "7.18.0"
23292383
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz#b5868d486c51ce8f312309ba79bdb9f331b37931"
@@ -2366,6 +2420,19 @@
23662420
eslint-scope "^5.1.1"
23672421
semver "^7.3.7"
23682422

2423+
"@typescript-eslint/[email protected]":
2424+
version "7.1.1"
2425+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.1.1.tgz#bdeeb789eee4af5d3fb5400a69566d4dbf97ff3b"
2426+
integrity sha512-thOXM89xA03xAE0lW7alstvnyoBUbBX38YtY+zAUcpRPcq9EIhXPuJ0YTv948MbzmKh6e1AUszn5cBFK49Umqg==
2427+
dependencies:
2428+
"@eslint-community/eslint-utils" "^4.4.0"
2429+
"@types/json-schema" "^7.0.12"
2430+
"@types/semver" "^7.5.0"
2431+
"@typescript-eslint/scope-manager" "7.1.1"
2432+
"@typescript-eslint/types" "7.1.1"
2433+
"@typescript-eslint/typescript-estree" "7.1.1"
2434+
semver "^7.5.4"
2435+
23692436
"@typescript-eslint/[email protected]":
23702437
version "7.18.0"
23712438
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.18.0.tgz#bca01cde77f95fc6a8d5b0dbcbfb3d6ca4be451f"
@@ -2402,6 +2469,14 @@
24022469
"@typescript-eslint/types" "6.21.0"
24032470
eslint-visitor-keys "^3.4.1"
24042471

2472+
"@typescript-eslint/[email protected]":
2473+
version "7.1.1"
2474+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.1.1.tgz#e6538a58c9b157f03bcbb29e3b6a92fe39a6ab0d"
2475+
integrity sha512-yTdHDQxY7cSoCcAtiBzVzxleJhkGB9NncSIyMYe2+OGON1ZsP9zOPws/Pqgopa65jvknOjlk/w7ulPlZ78PiLQ==
2476+
dependencies:
2477+
"@typescript-eslint/types" "7.1.1"
2478+
eslint-visitor-keys "^3.4.1"
2479+
24052480
"@typescript-eslint/[email protected]":
24062481
version "7.18.0"
24072482
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz#0564629b6124d67607378d0f0332a0495b25e7d7"
@@ -4348,7 +4423,7 @@ ieee754@^1.1.13:
43484423
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
43494424
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
43504425

4351-
ignore@^5.0.5, ignore@^5.2.0, ignore@^5.3.1:
4426+
ignore@^5.0.5, ignore@^5.2.0, ignore@^5.2.4, ignore@^5.3.1:
43524427
version "5.3.2"
43534428
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
43544429
integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==

0 commit comments

Comments
 (0)