Skip to content

Commit c692570

Browse files
committed
2 parents 35c4869 + 190f517 commit c692570

8 files changed

Lines changed: 111 additions & 142 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import tseslint from 'typescript-eslint'
4+
import { defineConfig, globalIgnores } from 'eslint/config'
5+
6+
export default defineConfig([
7+
globalIgnores(['dist']),
8+
{
9+
files: ['**/*.{js,ts}'],
10+
extends: [
11+
js.configs.recommended,
12+
tseslint.configs.recommended
13+
],
14+
languageOptions: {
15+
ecmaVersion: 2020,
16+
globals: globals.browser,
17+
},
18+
rules: {
19+
'@typescript-eslint/no-unused-vars': [
20+
'error',
21+
{
22+
args: 'all',
23+
argsIgnorePattern: '^_',
24+
caughtErrors: 'all',
25+
caughtErrorsIgnorePattern: '^_',
26+
destructuredArrayIgnorePattern: '^(_|set)',
27+
varsIgnorePattern: '^_',
28+
ignoreRestSiblings: true,
29+
},
30+
],
31+
'@typescript-eslint/no-inferrable-types': 'off',
32+
'@typescript-eslint/no-explicit-any': 'off',
33+
},
34+
},
35+
])

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/eslint.config.mjs

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

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,35 @@
1515
"scripts": {
1616
"start": "concurrently -k -r \"tsc --watch\" \"vite\"",
1717
"build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build",
18-
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
19-
"lint": "eslint \"**/*.{js,ts}\" --ignore-pattern .gitignore",
18+
"start:build": "vite preview --open",
19+
"lint": "eslint",
2020
"test": "tsc --project tsconfig.test.json && vitest run"
2121
},
2222
"dependencies": {
2323
"@vaadin/router": "^2.0.0",
24-
"lit": "^3.3.0",
25-
"typescript": "~5.8.3",
24+
"lit": "^3.3.2",
25+
"typescript": "^5.9.3",
2626
"igniteui-webcomponents": "~7.1.0"
2727
},
2828
"devDependencies": {
29+
"@eslint/js": "^9.39.4",
2930
"@babel/preset-env": "^7.28.3",
30-
"@typescript-eslint/eslint-plugin": "^8.46.0",
31-
"@typescript-eslint/parser": "^8.46.0",
32-
"@web/dev-server": "^0.4.6",
31+
"@vitest/browser-playwright": "^4.1.0",
3332
"babel-plugin-template-html-minifier": "^4.1.0",
3433
"concurrently": "^9.2.1",
3534
"deepmerge": "^4.3.1",
36-
"eslint": "^9.20.0",
37-
"eslint-plugin-lit": "^2.1.1",
35+
"eslint": "^9.39.4",
36+
"eslint-plugin-lit": "^2.2.1",
37+
"globals": "^17.4.0",
3838
"igniteui-cli": "~14.8.0",
39-
"playwright": "^1.55.1",
40-
"rimraf": "^6.0.1",
39+
"playwright": "^1.58.2",
40+
"rimraf": "^6.1.3",
4141
"source-map": "^0.7.6",
4242
"tslib": "^2.8.1",
43-
"vite": "^7.1.16",
44-
"vite-plugin-pwa": "^1.0.3",
45-
"vite-plugin-static-copy": "^3.1.3",
46-
"vitest": "^3.2.4",
47-
"@vitest/browser": "^3.2.4"
43+
"typescript-eslint": "^8.57.0",
44+
"vite": "^7.0.0",
45+
"vite-plugin-pwa": "^1.2.0",
46+
"vite-plugin-static-copy": "^4.0.1",
47+
"vitest": "^4.1.0"
4848
}
4949
}

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { defineConfig } from 'vitest/config';
1+
/// <reference types="vitest/config" />
2+
import { playwright } from '@vitest/browser-playwright'
3+
import { defineConfig } from 'vite'
24
import { VitePWA } from 'vite-plugin-pwa';
35
import { viteStaticCopy } from 'vite-plugin-static-copy';
46

@@ -10,7 +12,7 @@ export default defineConfig({
1012
chunkFileNames: '[hash].js',
1113
assetFileNames: '[hash][extname]',
1214
},
13-
onwarn: (warning, warn) => {
15+
onwarn: (warning: any, warn: any) => {
1416
if (warning.code === 'THIS_IS_UNDEFINED') return;
1517
warn(warning);
1618
},
@@ -23,19 +25,15 @@ export default defineConfig({
2325
test: {
2426
browser: {
2527
enabled: true,
26-
provider: 'playwright',
27-
instances: [
28-
{
29-
browser: 'chromium'
30-
},
31-
],
32-
},
28+
provider: playwright(),
29+
instances: [{ browser: 'chromium' }]
30+
}
3331
},
3432
plugins: [
3533
/** Copy static assets */
3634
viteStaticCopy({
3735
targets: [
38-
{ src: 'src/assets', dest: 'src' }
36+
{ src: 'src/assets', dest: '.' }
3937
],
4038
silent: true,
4139
}),

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/web-dev-server.config.mjs

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

packages/cli/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"./$(dashName).js": "./dist/src/$(dashName).js"
1414
},
1515
"scripts": {
16-
"start": "tsc && concurrently -k -r \"tsc --watch\" \"wds\"",
16+
"start": "tsc && concurrently -k -r \"tsc --watch\" \"vite\"",
1717
"build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build",
18-
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
19-
"lint": "eslint \"**/*.{js,ts}\" --ignore-pattern .gitignore",
18+
"start:build": "vite preview --open",
19+
"lint": "eslint",
2020
"test": "tsc --project tsconfig.test.json && vitest run"
2121
},
2222
"dependencies": {
23-
"@vaadin/router": "^1.7.4",
23+
"@vaadin/router": "^2.0.0",
2424
"@igniteui/material-icons-extended": "^3.0.2",
2525
"igniteui-dockmanager": "^2.1.0",
2626
"igniteui-webcomponents": "~7.1.0",
@@ -30,28 +30,28 @@
3030
"igniteui-webcomponents-grids": "~7.0.0",
3131
"igniteui-webcomponents-inputs": "~7.0.0",
3232
"igniteui-webcomponents-layouts": "~7.0.0",
33-
"lit": "^3.2.1",
34-
"typescript": "~5.7.2"
33+
"lit": "^3.3.2",
34+
"typescript": "^5.9.3"
3535
},
3636
"devDependencies": {
37+
"@eslint/js": "^9.39.4",
3738
"@babel/preset-env": "^7.28.3",
38-
"@typescript-eslint/eslint-plugin": "^8.46.0",
39-
"@typescript-eslint/parser": "^8.46.0",
40-
"@web/dev-server": "^0.4.6",
39+
"@vitest/browser-playwright": "^4.1.0",
4140
"babel-plugin-template-html-minifier": "^4.1.0",
4241
"concurrently": "^9.2.1",
4342
"deepmerge": "^4.3.1",
44-
"eslint": "^9.20.0",
45-
"eslint-plugin-lit": "^2.1.1",
43+
"eslint": "^9.39.4",
44+
"eslint-plugin-lit": "^2.2.1",
45+
"globals": "^17.4.0",
4646
"igniteui-cli": "~14.8.0",
47-
"playwright": "^1.55.1",
48-
"rimraf": "^6.0.1",
47+
"playwright": "^1.58.2",
48+
"rimraf": "^6.1.3",
4949
"source-map": "^0.7.6",
5050
"tslib": "^2.8.1",
51-
"vite": "^7.1.16",
52-
"vite-plugin-pwa": "^1.0.3",
53-
"vite-plugin-static-copy": "^3.1.3",
54-
"vitest": "^3.2.4",
55-
"@vitest/browser": "^3.2.4"
51+
"typescript-eslint": "^8.57.0",
52+
"vite": "^7.0.0",
53+
"vite-plugin-pwa": "^1.2.0",
54+
"vite-plugin-static-copy": "^4.0.1",
55+
"vitest": "^4.1.0"
5656
}
5757
}

packages/cli/templates/webcomponents/igc-ts/projects/side-nav/files/src/app/app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defineComponents(
1414
);
1515

1616
@customElement('app-root')
17-
export class App extends LitElement {
17+
export default class App extends LitElement {
1818
static styles = css`
1919
router-outlet {
2020
height: 100%;
@@ -35,10 +35,10 @@ export class App extends LitElement {
3535
return html`
3636
<igc-nav-drawer open="true" position="relative">
3737
<igc-nav-drawer-header-item>Ignite UI CLI</igc-nav-drawer-header-item>
38-
${routes.filter((element, index) => index < routes.length - 1).map(i => html`
38+
${routes.filter(route => route.name).map(({path, name}) => html`
3939
<igc-nav-drawer-item>
4040
<span slot="content">
41-
<a href="${i.path}">${i.name}<igc-ripple></igc-ripple></a>
41+
<a href="${path}">${name}<igc-ripple></igc-ripple></a>
4242
</span>
4343
</igc-nav-drawer-item>
4444
`)}

0 commit comments

Comments
 (0)