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