Skip to content

Commit

Permalink
last not workable esfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Sep 12, 2024
1 parent d77d7a0 commit 40a4a1a
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export default [
globals: globals.browser,
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/react-in-jsx-scope': 'off', // Вимкнути правило для імпорту React
},
settings: {
react: {
version: 'detect',
version: 'detect', // Автоматично визначати версію React
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"globals": "^15.9.0",
"husky": "^9.1.6",
"prettier": "^3.3.3",
"typescript": "^5.5.3",
"typescript": "^5.6.2",
"typescript-eslint": "^8.5.0",
"vite": "^5.4.1"
},
Expand Down
10 changes: 6 additions & 4 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"allowImportingTsExtensions": false, // Вимикаємо, бо noEmit не встановлено
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"noEmit": false, // Переконатися, що noEmit встановлено в false
"jsx": "react-jsx",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"composite": true // Додаємо composite
},
"include": ["src"]
"include": ["src"],
"exclude": ["node_modules"]
}
12 changes: 11 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"files": [],
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"jsx": "react-jsx",
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src"],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,

/* Important for project references */
"composite": true, // Додано для підтримки референсів
"emitDeclarationOnly": true, // Змінив на emitDeclarationOnly

/* Linting */
"strict": true,
Expand Down

0 comments on commit 40a4a1a

Please sign in to comment.