Skip to content

Commit 45d6ada

Browse files
authored
Merge pull request Expensify#87771 from software-mansion-labs/dariusz-biela/chore/upgrade-ts-6
[NO QA] chore: upgrade TypeScript to version ^6.0.2
2 parents dc30bd1 + 156e211 commit 45d6ada

79 files changed

Lines changed: 374 additions & 406 deletions

File tree

Some content is hidden

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

.github/actions/javascript/authorChecklist/categories/newComponentCategory.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ function detectReactComponent(code: string, filename: string): boolean | undefin
6565
// eslint-disable-next-line @typescript-eslint/naming-convention
6666
ClassDeclaration(path) {
6767
const {superClass} = path.node as unknown as SuperClassType;
68-
if (
69-
superClass &&
70-
((superClass.object && superClass.object.name === 'React' && isComponentOrPureComponent(superClass.property.name)) || isComponentOrPureComponent(superClass.name))
71-
) {
68+
if (superClass && ((superClass.object?.name === 'React' && isComponentOrPureComponent(superClass.property.name)) || isComponentOrPureComponent(superClass.name))) {
7269
isReactComponent = true;
7370
path.stop();
7471
}

.github/tsconfig.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
4-
"moduleResolution": "node",
3+
"module": "node16",
4+
"moduleResolution": "node16",
55
"target": "ES2023",
66
"types": ["node"],
7-
"allowSyntheticDefaultImports": true,
8-
"esModuleInterop": true,
9-
"downlevelIteration": true,
10-
"baseUrl": ".",
117
"paths": {
128
"@assets/*": ["../assets/*"],
139
"@components/*": ["../src/components/*"],

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ const config = defineConfig([
446446
],
447447
'@typescript-eslint/prefer-find': 'off',
448448
'@typescript-eslint/prefer-includes': 'off',
449+
'@typescript-eslint/prefer-optional-chain': 'off',
449450
'@typescript-eslint/prefer-nullish-coalescing': [
450451
'error',
451452
{

0 commit comments

Comments
 (0)