frontend: add a typecheck script and make explicit any an error
Pedro Lucas Porcellis porcellis@eletrotupi.com · 12 days ago
58de486423eec87d0c5bb7771fcc5a53f7bb4618 Browse filesParents
8173e20Changed files
2
Additions
+6
Deletions
0
frontend/eslint.config.js
1 1
// https://docs.expo.dev/guides/using-eslint/
2 2
const { defineConfig } = require('eslint/config');
3 3
const expoConfig = require('eslint-config-expo/flat');
4 4
5 5
module.exports = defineConfig([
6 6
expoConfig,
7 7
{
8 8
ignores: ['dist/*'],
9 9
},
10 +
{
11 +
rules: {
12 +
'@typescript-eslint/no-explicit-any': 'error',
13 +
},
14 +
},
10 15
]);
frontend/package.json
1 1
{
2 2
"name": "orbit",
3 3
"main": "expo-router/entry",
4 4
"version": "0.0.0",
5 5
"scripts": {
6 6
"start": "expo start",
7 7
"reset-project": "node ./scripts/reset-project.js",
8 8
"android": "expo run:android",
9 9
"android:reverse": "sh scripts/adb-reverse.sh",
10 10
"lint": "expo lint",
11 +
"typecheck": "tsc --noEmit",
11 12
"ios": "expo run:ios",
12 13
"test:e2e": "sh scripts/e2e.sh test",
13 14
"test:e2e:env": "sh scripts/e2e.sh print-env"
14 15
},
15 16
"dependencies": {
65 66
"eslint-config-expo": "~57.0.2",
66 67
"typescript": "~6.0.3"
67 68
},
68 69
"private": true
69 70
}