Skip to content

Commit adf3ed8

Browse files
Hristo313Copilot
andauthored
feat(igr-ts): update igr-ts templates (#1598)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent bb111b5 commit adf3ed8

15 files changed

Lines changed: 195 additions & 142 deletions

File tree

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,41 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3-
# dependencies
3+
# Dependencies
44
/node_modules
55
/.pnp
66
.pnp.js
77

8-
# testing
8+
# Testing
99
/coverage
1010

11-
# production
11+
# Production
1212
/build
13+
dist
14+
dist-ssr
1315

14-
# misc
16+
# Misc
1517
.DS_Store
1618
.env.local
1719
.env.development.local
1820
.env.test.local
1921
.env.production.local
22+
*.local
2023

24+
# Logs
25+
logs
26+
*.log
2127
npm-debug.log*
2228
yarn-debug.log*
2329
yarn-error.log*
30+
pnpm-debug.log*
31+
lerna-debug.log*
32+
33+
# Editor directories and files
34+
.vscode/*
35+
!.vscode/extensions.json
36+
.idea
37+
*.suo
38+
*.ntvs*
39+
*.njsproj
40+
*.sln
41+
*.sw?
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
import { defineConfig, globalIgnores } from 'eslint/config'
7+
8+
export default defineConfig([
9+
globalIgnores(['dist']),
10+
{
11+
files: ['**/*.{ts,tsx}'],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs.flat.recommended,
16+
reactRefresh.configs.vite,
17+
],
18+
languageOptions: {
19+
ecmaVersion: 2020,
20+
globals: globals.browser,
21+
},
22+
plugins: {
23+
reactRefresh
24+
},
25+
rules: {
26+
'@typescript-eslint/no-unused-vars': [
27+
'error',
28+
{
29+
args: 'all',
30+
argsIgnorePattern: '^_',
31+
caughtErrors: 'all',
32+
caughtErrorsIgnorePattern: '^_',
33+
destructuredArrayIgnorePattern: '^(_|set)',
34+
varsIgnorePattern: '^_',
35+
ignoreRestSiblings: true,
36+
},
37+
],
38+
'reactRefresh/only-export-components': ['warn', { allowConstantExport: true }],
39+
'@typescript-eslint/no-explicit-any': 'off',
40+
},
41+
},
42+
])

packages/cli/templates/react/igr-ts/projects/_base/files/eslint.config.mjs

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/cli/templates/react/igr-ts/projects/_base/files/index.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8" />
5-
<link rel="shortcut icon" href="/favicon.ico" />
6-
<meta
7-
name="viewport"
8-
content="width=device-width, initial-scale=1, shrink-to-fit=no"
9-
/>
10-
<meta name="theme-color" content="#000000" />
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
117
<title><%=ApplicationTitle%></title>
128
<link rel="stylesheet" href="./styles.css">
139
</head>

packages/cli/templates/react/igr-ts/projects/_base/files/package.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
11
{
22
"name": "$(dash-name)",
3-
"version": "0.1.0",
43
"private": true,
4+
"version": "0.1.0",
55
"type": "module",
6+
"scripts": {
7+
"start": "vite",
8+
"build": "tsc -b && node --max-old-space-size=4096 node_modules/vite/bin/vite build",
9+
"preview": "vite preview",
10+
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
11+
"test": "vitest"
12+
},
613
"dependencies": {
714
"@testing-library/jest-dom": "^6.9.1",
815
"@testing-library/react": "^16.3.0",
916
"element-internals-polyfill": "^3.0.2",
1017
"functions-have-names": "^1.2.3",
1118
"igniteui-react": "~19.6.0",
12-
"react": "^19.1.0",
19+
"react": "^19.2.4",
1320
"react-app-polyfill": "^3.0.0",
14-
"react-dom": "^19.1.0",
21+
"react-dom": "^19.2.4",
1522
"react-router-dom": "^7.9.3",
1623
"resize-observer-polyfill": "^1.5.1"
1724
},
1825
"devDependencies": {
19-
"@types/react": "^19.1.8",
20-
"@types/react-dom": "^19.1.6",
21-
"@typescript-eslint/eslint-plugin": "^8.21.0",
22-
"@typescript-eslint/parser": "^8.21.0",
23-
"eslint": "^9.20.0",
24-
"eslint-plugin-react-hooks": "^5.1.0",
25-
"eslint-plugin-react-refresh": "^0.4.3",
26-
"typescript": "^5.8.3",
27-
"vite": "^7.1.6",
28-
"vitest": "^3.2.4",
29-
"@vitest/browser": "^3.2.4",
26+
"@eslint/js": "^9.39.4",
27+
"@types/node": "^24.12.0",
28+
"@types/react": "^19.2.14",
29+
"@types/react-dom": "^19.2.3",
3030
"@vitejs/plugin-react": "^5.0.3",
31-
"vitest-canvas-mock": "^0.3.3",
32-
"playwright": "^1.55.1",
31+
"@vitest/browser-playwright": "^4.1.0",
32+
"eslint": "^9.39.4",
33+
"eslint-plugin-react-hooks": "^7.0.1",
34+
"eslint-plugin-react-refresh": "^0.5.2",
35+
"globals": "^17.4.0",
36+
"typescript": "^5.9.3",
37+
"typescript-eslint": "^8.57.0",
38+
"vite": "^8.0.1",
39+
"vitest": "^4.1.0",
40+
"playwright": "^1.58.2",
3341
"igniteui-cli": "~$(cliVersion)"
3442
},
35-
"scripts": {
36-
"start": "vite",
37-
"build": "tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite build",
38-
"preview": "vite preview",
39-
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
40-
"test": "vitest"
41-
},
4243
"browserslist": [
4344
">0.2%",
4445
"not dead",
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)