Skip to content

Commit

Permalink
fix(expo): Fix expo upload source maps script lint (#3508)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored Jan 9, 2024
1 parent 6bd18dc commit 55fe14c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
// Scripts
files: ['scripts/*'],
parserOptions: {
ecmaVersion: 2015,
ecmaVersion: 2018,
},
rules: {
'no-console': 'off',
Expand Down
4 changes: 2 additions & 2 deletions scripts/expo-upload-sourcemaps.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');
const { stderr } = require('process');
const process = require('process');

const SENTRY_PROJECT = 'SENTRY_PROJECT';
// The sentry org is inferred from the auth token
Expand Down Expand Up @@ -113,7 +113,7 @@ if (!sentryProject) {
}
if (!pluginConfig.project) {
console.error(
"Could not resolve sentry project, set it in the environment variable SENTRY_PROJECT or in the '@sentry/react-native' plugin properties in your expo config.",
`Could not resolve sentry project, set it in the environment variable ${SENTRY_PROJECT} or in the '@sentry/react-native' plugin properties in your expo config.`,
);
process.exit(1);
}
Expand Down

0 comments on commit 55fe14c

Please sign in to comment.