Skip to content

Commit

Permalink
Lint and typecheck examples against RN 0.73 (facebook#3946)
Browse files Browse the repository at this point in the history
* Lint and typecheck examples against RN 0.73

Updates the harness for linting snack examples to the newest version of RN.

* Update Netlify Node version
  • Loading branch information
NickGerleman authored Dec 7, 2023
1 parent cc46589 commit 4818763
Show file tree
Hide file tree
Showing 5 changed files with 629 additions and 604 deletions.
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
command = "yarn && cd website && yarn build"

[context.production.environment]
NODE_VERSION = "16.15.0"
NODE_VERSION = "20"
NODE_OPTIONS = "--max_old_space_size=4096"

[context.deploy-preview.environment]
NODE_VERSION = "16.15.0"
NODE_VERSION = "20"
NODE_OPTIONS = "--max_old_space_size=4096"
PREVIEW_DEPLOY = "true"

Expand Down
2 changes: 1 addition & 1 deletion scripts/lint-examples/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
};
14 changes: 7 additions & 7 deletions scripts/lint-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.14.0",
"@babel/runtime": "^7.12.5",
"@react-native/babel-preset": "^0.73.18",
"@react-native-community/slider": "^4.4.2",
"@react-native/eslint-config": "^0.72.1",
"@tsconfig/react-native": "^2.0.2",
"@types/react": "^18.0.24",
"@react-native/eslint-config": "^0.73.1",
"@react-native/typescript-config": "^0.73.1",
"@types/react": "^18.2.6",
"eslint": "^8.19.0",
"glob-promise": "^4.2.2",
"metro-react-native-babel-preset": "0.75.1",
"prettier": "^2.4.1",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "^0.72.0-rc.2",
"typescript": "4.8.4"
"react-native": "^0.73.0",
"typescript": "5.0.4"
}
}
2 changes: 1 addition & 1 deletion scripts/lint-examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@tsconfig/react-native/tsconfig.json",
"extends": "@react-native/typescript-config/tsconfig.json",
"include": ["./out"]
}
Loading

0 comments on commit 4818763

Please sign in to comment.