Repository navigation
fix: repo's typescript and ESlint configuration and errors #796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d3243dd
89e32e1
9c4625e
69ecadf
53c6165
b28d943
ce26a78
8a06b4e
d66e98e
28227b7
4362ad2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "extends": "../tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "types": ["node"], | ||
| }, | ||
| "include": ["**/*.ts"], | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,28 +5,19 @@ | |
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build:web": "tsc -b && vite build", | ||
| "preview": "vite preview", | ||
| "lint": "eslint . --ext ts,tsx" | ||
| "build:web": "vite build", | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe we can safely remove that |
||
| "preview": "vite preview" | ||
| }, | ||
| "dependencies": { | ||
| "react": "^19.1.0", | ||
| "react-dom": "^19.1.0" | ||
| "react": "19.2.3", | ||
| "react-dom": "19.2.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.39.1", | ||
| "@types/node": "^24.10.1", | ||
| "@types/react": "^19.1.0", | ||
| "@types/react-dom": "^19.2.3", | ||
| "@types/react": "^19.2.0", | ||
| "@types/react-dom": "^19.2.0", | ||
| "@vitejs/plugin-react": "^5.1.1", | ||
| "eslint": "^9.22.0", | ||
| "eslint-plugin-react-dom": "^2.3.13", | ||
| "eslint-plugin-react-hooks": "^7.0.1", | ||
| "eslint-plugin-react-refresh": "^0.4.24", | ||
| "eslint-plugin-react-x": "^2.3.13", | ||
| "globals": "^16.5.0", | ||
| "typescript": "^5.8.3", | ||
| "typescript-eslint": "^8.46.4", | ||
| "vite": "^7.2.4" | ||
|
hejsztynx marked this conversation as resolved.
|
||
| }, | ||
| "engines": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,8 +4,12 @@ | |
| "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", | ||
| "types": ["vite/client"], | ||
| "paths": { | ||
| "react-native-enriched-html": ["../../src/index.tsx"] | ||
| } | ||
| "react-native-enriched-html": ["../../src/index.tsx"], | ||
| "react": ["../../node_modules/@types/react"], | ||
| "react/*": ["../../node_modules/@types/react/*"], | ||
| "react-dom": ["../../node_modules/@types/react-dom"], | ||
| "react-dom/*": ["../../node_modules/@types/react-dom/*"], | ||
|
Comment on lines
+8
to
+11
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this mapping is needed? Looks like a workaround for incorrect versions. This should be fixed differently, as those mappings were not needed before
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These mappings aren't needed, but I wanted to make that file consistent with |
||
| }, | ||
| }, | ||
| "include": ["src"] | ||
| "include": ["src"], | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "extends": "./tsconfig", | ||
| "exclude": ["apps", "lib", "cpp/build", "docs"] | ||
| "exclude": ["apps", "lib", "cpp/build", "docs", ".playwright"], | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,13 @@ | ||
| { | ||
| "extends": "./tsconfig.base.json", | ||
| "exclude": ["docs"], | ||
| "compilerOptions": { | ||
| "rootDir": ".", | ||
| "types": ["jest"], | ||
| "paths": { | ||
| "react-native-enriched-html": ["./src/index.native"] | ||
| } | ||
| } | ||
| "react-native-enriched-html": ["./src/index.native"], | ||
| "react": ["./node_modules/@types/react"], | ||
| "react/*": ["./node_modules/@types/react/*"], | ||
| }, | ||
| }, | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.