Skip to content

Commit 46bcfba

Browse files
committed
feat(es-lin): add packages and config files for
eslint typescript
1 parent f56598b commit 46bcfba

File tree

4 files changed

+259
-6
lines changed

4 files changed

+259
-6
lines changed

packages/app/.eslintrc.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
{
2-
"plugins": ["react", "react-native"],
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["react", "react-native","@typescript-eslint"],
35
"env": {
46
"react-native/react-native": true
57
},
68
"parserOptions": {
79
"sourceType": "module",
810
"ecmaVersion": 2023,
9-
"ecmaFeatures": { "jsx": true }
11+
"ecmaFeatures": { "jsx": true },
12+
"project": ["./tsconfig.json"]
1013
},
1114
"extends": [
1215
"prettier",
1316
"eslint:recommended",
1417
"plugin:react-native/all",
15-
"plugin:react/recommended"
18+
"plugin:react/recommended",
19+
"plugin:@typescript-eslint/recommended"
1620
]
1721
}

packages/app/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@
5454
"@types/react": "^18.0.28",
5555
"@types/react-native": "^0.71.2",
5656
"@types/react-test-renderer": "^18.0.0",
57+
"@typescript-eslint/eslint-plugin": "^6.11.0",
58+
"@typescript-eslint/parser": "^6.11.0",
5759
"babel-jest": "^29.7.0",
5860
"babel-plugin-module-resolver": "^4.1.0",
61+
"eslint": "^8.54.0",
5962
"eslint-plugin-react": "7.32.2",
6063
"eslint-plugin-react-native": "4.0.0",
6164
"jest": "^29.3.1",

packages/app/screens/landing/LandingScreen.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import { LandingScreenNavigationProps } from "@app/types/Landing";
2929

3030
WebBrowser.maybeCompleteAuthSession();
3131

32+
let bat = "";
33+
3234
const BLUE = "#0b91e0";
3335
const DARK_GRAY = "#a3a3a3";
3436
const GRAY = "#c4c4c4";

0 commit comments

Comments
 (0)