Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client

Typecheck app.config.js (#9771)

* typecheck app.config.js

* fix eslint warning

* use import.meta.url instead of __dirname

* dirname, not url

authored by samuel.fm and committed by

GitHub 2953b3a0 69a765cc

+28 -14
+26 -13
app.config.js
··· 1 + // @ts-check 1 2 const pkg = require('./package.json') 2 3 4 + /** 5 + * @param {import('@expo/config-types').ExpoConfig} _config 6 + * @returns {{ expo: import('@expo/config-types').ExpoConfig }} 7 + */ 3 8 module.exports = function (_config) { 4 9 /** 5 10 * App version number. Should be incremented as part of a release cycle. ··· 192 197 scheme: 'https', 193 198 host: 'bsky.app', 194 199 }, 195 - IS_DEV && { 196 - scheme: 'http', 197 - host: 'localhost:19006', 198 - }, 200 + ...(IS_DEV 201 + ? [ 202 + { 203 + scheme: 'http', 204 + host: 'localhost:19006', 205 + }, 206 + ] 207 + : []), 199 208 ], 200 209 category: ['BROWSABLE', 'DEFAULT'], 201 210 }, ··· 227 236 'react-native-edge-to-edge', 228 237 {android: {enforceNavigationBarContrast: false}}, 229 238 ], 230 - USE_SENTRY && [ 231 - '@sentry/react-native/expo', 232 - { 233 - organization: 'blueskyweb', 234 - project: 'app', 235 - url: 'https://sentry.io', 236 - }, 237 - ], 239 + ...(USE_SENTRY 240 + ? [ 241 + /** @type {[string, any]} */ ([ 242 + '@sentry/react-native/expo', 243 + { 244 + organization: 'blueskyweb', 245 + project: 'app', 246 + url: 'https://sentry.io', 247 + }, 248 + ]), 249 + ] 250 + : []), 238 251 [ 239 252 'expo-build-properties', 240 253 { ··· 397 410 'I agree to allow Bluesky to use my contacts for friend discovery until I opt out.', 398 411 }, 399 412 ], 400 - ].filter(Boolean), 413 + ], 401 414 extra: { 402 415 eas: { 403 416 build: {
+1
eslint.config.mjs
··· 77 77 parserOptions: { 78 78 parser: tsParser, 79 79 projectService: true, 80 + tsconfigRootDir: import.meta.dirname, 80 81 ecmaFeatures: { 81 82 jsx: true, 82 83 },
+1 -1
tsconfig.check.json
··· 1 1 { 2 2 "extends": "./tsconfig.json", 3 - "include": ["src"] 3 + "include": ["src", "app.config.js"] 4 4 }