igniteui-cli 14.3.14-beta.1 → 14.3.14-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/templates/react/igr-ts/projects/_base/files/eslint.config.mjs +48 -0
- package/templates/react/igr-ts/projects/_base/files/package.json +2 -2
- package/templates/react/igr-ts/projects/_base/files/vite.config.ts +3 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/eslint.config.mjs +37 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -1
- package/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts +4 -0
- package/templates/react/igr-ts/projects/_base/files/__dot__eslintrc.cjs +0 -31
- package/templates/webcomponents/igc-ts/projects/_base/files/__dot__eslintrc.json +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "14.3.14-beta.
|
|
3
|
+
"version": "14.3.14-beta.10",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"all": true
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@igniteui/angular-templates": "~19.0.14314-beta.
|
|
74
|
-
"@igniteui/cli-core": "~14.3.14-beta.
|
|
73
|
+
"@igniteui/angular-templates": "~19.0.14314-beta.10",
|
|
74
|
+
"@igniteui/cli-core": "~14.3.14-beta.10",
|
|
75
75
|
"@inquirer/prompts": "^5.4.0",
|
|
76
76
|
"@types/yargs": "^17.0.33",
|
|
77
77
|
"chalk": "^5.3.0",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import typescriptParser from '@typescript-eslint/parser';
|
|
3
|
+
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
4
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
5
|
+
|
|
6
|
+
const compat = new FlatCompat({
|
|
7
|
+
recommendedConfig: js.configs.recommended
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export default [
|
|
11
|
+
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended'),
|
|
12
|
+
{
|
|
13
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
14
|
+
languageOptions: {
|
|
15
|
+
globals: {
|
|
16
|
+
browser: true,
|
|
17
|
+
es2020: true,
|
|
18
|
+
},
|
|
19
|
+
parser: typescriptParser,
|
|
20
|
+
parserOptions: {
|
|
21
|
+
ecmaVersion: 'latest',
|
|
22
|
+
sourceType: 'module',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
plugins: {
|
|
26
|
+
reactRefresh
|
|
27
|
+
},
|
|
28
|
+
rules: {
|
|
29
|
+
'@typescript-eslint/no-unused-vars': [
|
|
30
|
+
'error',
|
|
31
|
+
{
|
|
32
|
+
args: 'all',
|
|
33
|
+
argsIgnorePattern: '^_',
|
|
34
|
+
caughtErrors: 'all',
|
|
35
|
+
caughtErrorsIgnorePattern: '^_',
|
|
36
|
+
destructuredArrayIgnorePattern: '^(_|set)',
|
|
37
|
+
varsIgnorePattern: '^_',
|
|
38
|
+
ignoreRestSiblings: true,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
'reactRefresh/only-export-components': ['warn', { allowConstantExport: true }],
|
|
42
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
ignores: ['dist']
|
|
47
|
+
}
|
|
48
|
+
];
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@typescript-eslint/parser": "^8.21.0",
|
|
23
23
|
"@vitejs/plugin-react": "^4.0.3",
|
|
24
24
|
"eslint": "^9.20.0",
|
|
25
|
-
"eslint-plugin-react-hooks": "^
|
|
25
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
26
26
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
27
27
|
"jsdom": "^22.1.0",
|
|
28
28
|
"typescript": "~5.5.4",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"start": "vite",
|
|
35
35
|
"build": "tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite build",
|
|
36
36
|
"preview": "vite preview",
|
|
37
|
-
"lint": "eslint . --
|
|
37
|
+
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
38
38
|
"test": "vitest"
|
|
39
39
|
},
|
|
40
40
|
"browserslist": [
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import typescriptParser from '@typescript-eslint/parser';
|
|
3
|
+
import tseslint from '@typescript-eslint/eslint-plugin';
|
|
4
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
5
|
+
|
|
6
|
+
const compat = new FlatCompat({
|
|
7
|
+
recommendedConfig: js.configs.recommended
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export default [
|
|
11
|
+
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended'),
|
|
12
|
+
{
|
|
13
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
14
|
+
languageOptions: {
|
|
15
|
+
globals: {
|
|
16
|
+
browser: true,
|
|
17
|
+
es2021: true,
|
|
18
|
+
jasmine: true,
|
|
19
|
+
},
|
|
20
|
+
parser: typescriptParser,
|
|
21
|
+
parserOptions: {
|
|
22
|
+
ecmaVersion: 12,
|
|
23
|
+
sourceType: 'module',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
plugins: {
|
|
27
|
+
'@typescript-eslint': tseslint,
|
|
28
|
+
},
|
|
29
|
+
rules: {
|
|
30
|
+
'@typescript-eslint/no-inferrable-types': 'off',
|
|
31
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
ignores: ['dist']
|
|
36
|
+
}
|
|
37
|
+
];
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"start": "tsc && concurrently -k -r \"tsc --watch\" \"wds\"",
|
|
17
17
|
"build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build",
|
|
18
18
|
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
|
|
19
|
-
"lint": "eslint \"**/*.{js,ts}\" --ignore-
|
|
19
|
+
"lint": "eslint \"**/*.{js,ts}\" --ignore-pattern .gitignore",
|
|
20
20
|
"test": "tsc --project tsconfig.test.json && wtr"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
@@ -18,6 +18,7 @@ export default defineConfig({
|
|
|
18
18
|
target: 'es2021',
|
|
19
19
|
minify: 'terser',
|
|
20
20
|
emptyOutDir: false,
|
|
21
|
+
chunkSizeWarningLimit: 10 * 1024 * 1024 // 10 MB
|
|
21
22
|
},
|
|
22
23
|
plugins: [
|
|
23
24
|
/** Copy static assets */
|
|
@@ -44,6 +45,9 @@ export default defineConfig({
|
|
|
44
45
|
],
|
|
45
46
|
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024 // 10 MB
|
|
46
47
|
},
|
|
48
|
+
manifest: {
|
|
49
|
+
theme_color: "#ffffff"
|
|
50
|
+
}
|
|
47
51
|
}),
|
|
48
52
|
],
|
|
49
53
|
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: { browser: true, es2020: true },
|
|
4
|
-
extends: [
|
|
5
|
-
'eslint:recommended',
|
|
6
|
-
'plugin:@typescript-eslint/recommended',
|
|
7
|
-
'plugin:react-hooks/recommended',
|
|
8
|
-
],
|
|
9
|
-
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
10
|
-
parser: '@typescript-eslint/parser',
|
|
11
|
-
plugins: ['react-refresh'],
|
|
12
|
-
rules: {
|
|
13
|
-
'@typescript-eslint/no-unused-vars': [
|
|
14
|
-
'error',
|
|
15
|
-
{
|
|
16
|
-
args: 'all',
|
|
17
|
-
argsIgnorePattern: '^_',
|
|
18
|
-
caughtErrors: 'all',
|
|
19
|
-
caughtErrorsIgnorePattern: '^_',
|
|
20
|
-
destructuredArrayIgnorePattern: '^(_|set)',
|
|
21
|
-
varsIgnorePattern: '^_',
|
|
22
|
-
ignoreRestSiblings: true
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
'react-refresh/only-export-components': [
|
|
26
|
-
'warn',
|
|
27
|
-
{ allowConstantExport: true },
|
|
28
|
-
],
|
|
29
|
-
'@typescript-eslint/no-explicit-any': 'off'
|
|
30
|
-
},
|
|
31
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"env": {
|
|
4
|
-
"browser": true,
|
|
5
|
-
"es2021": true,
|
|
6
|
-
"jasmine": true
|
|
7
|
-
},
|
|
8
|
-
"extends": [
|
|
9
|
-
"eslint:recommended",
|
|
10
|
-
"plugin:@typescript-eslint/recommended"
|
|
11
|
-
],
|
|
12
|
-
"parser": "@typescript-eslint/parser",
|
|
13
|
-
"parserOptions": {
|
|
14
|
-
"ecmaVersion": 12,
|
|
15
|
-
"sourceType": "module"
|
|
16
|
-
},
|
|
17
|
-
"plugins": [
|
|
18
|
-
"@typescript-eslint"
|
|
19
|
-
],
|
|
20
|
-
"rules": {
|
|
21
|
-
"@typescript-eslint/no-inferrable-types": "off",
|
|
22
|
-
"@typescript-eslint/no-explicit-any": "off"
|
|
23
|
-
}
|
|
24
|
-
}
|