Skip to content

Commit

Permalink
fix(example): fix eslint and typescript setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpo committed Jul 5, 2023
1 parent cd999d5 commit e37b6b2
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 43 deletions.
2 changes: 1 addition & 1 deletion packages/example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"target": "es6",
"esModuleInterop": true,
"paths": {
"@react-spatial-navigation/core": "../core/src"
"@react-spatial-navigation/core": ["../core/src"]
},
"jsx": "react-jsx"
},
Expand Down
1 change: 0 additions & 1 deletion packages/rabbit-tv-with-rn-tvos/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {PropsWithChildren} from 'react';
import React from 'react';
import {
SafeAreaView,
ScrollView,
Expand Down
1 change: 0 additions & 1 deletion packages/rabbit-tv-with-rn-tvos/__tests__/App-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/

import 'react-native';
import React from 'react';
import App from '../App';

// Note: test renderer must be required after react-native.
Expand Down
1 change: 1 addition & 0 deletions packages/rabbit-tv-with-rn-tvos/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @format
*/

// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');

module.exports = {
Expand Down
7 changes: 1 addition & 6 deletions packages/rabbit-tv-with-rn-tvos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/eslint-config": "^3.2.0",
"@tsconfig/react-native": "^2.0.2",
"@types/jest": "^29.2.1",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.10",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
"react-test-renderer": "18.2.0"
},
"jest": {
"preset": "react-native"
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"skipLibCheck": true,
"outDir": "./dist/",
"sourceMap": true,
"noImplicitAny": true,
Expand Down
36 changes: 2 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2854,13 +2854,6 @@ __metadata:
languageName: node
linkType: hard

"@tsconfig/react-native@npm:^2.0.2":
version: 2.0.3
resolution: "@tsconfig/react-native@npm:2.0.3"
checksum: 757edb4435a12d4ece9cf61c010df3dab771fbf6065c5b03445ecf440398df641d2859fc3ace3790a1f07eca990f54d16912fab59f144090871bf70612f47a80
languageName: node
linkType: hard

"@types/babel__core@npm:^7.1.14":
version: 7.20.1
resolution: "@types/babel__core@npm:7.20.1"
Expand Down Expand Up @@ -3595,23 +3588,18 @@ __metadata:
"@babel/core": ^7.20.0
"@babel/preset-env": ^7.20.0
"@babel/runtime": ^7.20.0
"@react-native-community/eslint-config": ^3.2.0
"@react-navigation/native": ^6.1.7
"@tsconfig/react-native": ^2.0.2
"@types/jest": ^29.2.1
"@types/react": ^18.0.24
"@types/react-test-renderer": ^18.0.0
babel-jest: ^29.2.1
eslint: ^8.19.0
jest: ^29.2.1
metro-react-native-babel-preset: 0.73.10
prettier: ^2.4.1
react: 18.2.0
react-native: "npm:react-native-tvos@0.71.11-0"
react-native-safe-area-context: ^4.6.3
react-native-screens: ^3.22.0
react-test-renderer: 18.2.0
typescript: 4.8.4
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -5802,7 +5790,7 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^8.19.0, eslint@npm:^8.44.0":
"eslint@npm:^8.44.0":
version: 8.44.0
resolution: "eslint@npm:8.44.0"
dependencies:
Expand Down Expand Up @@ -10175,7 +10163,7 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^2.4.1, prettier@npm:^2.8.8":
"prettier@npm:^2.8.8":
version: 2.8.8
resolution: "prettier@npm:2.8.8"
bin:
Expand Down Expand Up @@ -12036,16 +12024,6 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:4.8.4":
version: 4.8.4
resolution: "typescript@npm:4.8.4"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 3e4f061658e0c8f36c820802fa809e0fd812b85687a9a2f5430bc3d0368e37d1c9605c3ce9b39df9a05af2ece67b1d844f9f6ea8ff42819f13bcb80f85629af0
languageName: node
linkType: hard

"typescript@npm:^5.1.6":
version: 5.1.6
resolution: "typescript@npm:5.1.6"
Expand All @@ -12056,16 +12034,6 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@4.8.4#~builtin<compat/typescript>":
version: 4.8.4
resolution: "typescript@patch:typescript@npm%3A4.8.4#~builtin<compat/typescript>::version=4.8.4&hash=1a91c8"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: c981e82b77a5acdcc4e69af9c56cdecf5b934a87a08e7b52120596701e389a878b8e3f860e73ffb287bf649cc47a8c741262ce058148f71de4cdd88bb9c75153
languageName: node
linkType: hard

"typescript@patch:typescript@^5.1.6#~builtin<compat/typescript>":
version: 5.1.6
resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin<compat/typescript>::version=5.1.6&hash=77c9e2"
Expand Down

0 comments on commit e37b6b2

Please sign in to comment.