Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scripts/run-ci-e2e-tests.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -91,6 +91,7 @@ try {

mv('_bundle', '.bundle');
mv('_eslintrc.js', '.eslintrc.js');
mv('_prettierrc.js', '.prettierrc.js');
mv('_watchmanconfig', '.watchmanconfig');

describe('Install React Native package');
Expand DownExpand Up@@ -282,6 +283,16 @@ try {
exitCode = 1;
throw Error(exitCode);
}

// TODO: ESLint infinitely hangs when running in the environment created by
// this script, but not projects generated by `react-native init`.
/*
describe('Test: ESLint/Prettier linting and formatting');
if (exec('yarn lint').code) {
echo('linting errors were found');
exitCode = 1;
throw Error(exitCode);
}*/
}
exitCode = 0;
} finally {
Expand Down
4 changes: 3 additions & 1 deletion template/package.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,6 +15,7 @@
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.14.0",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^3.0.0",
"@tsconfig/react-native": "^2.0.2",
Expand All@@ -27,8 +28,9 @@
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.3",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "^4.8.3"
"typescript": "4.8.4"
},
"jest": {
"preset": "react-native"
Expand Down