igniteui-cli 14.3.14-beta.2 → 14.3.14-beta.4
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 +44 -0
- package/templates/react/igr-ts/projects/_base/files/vite.config.ts +3 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/eslint.config.mjs +30 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -0
- 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.4",
|
|
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.4",
|
|
74
|
+
"@igniteui/cli-core": "~14.3.14-beta.4",
|
|
75
75
|
"@inquirer/prompts": "^5.4.0",
|
|
76
76
|
"@types/yargs": "^17.0.33",
|
|
77
77
|
"chalk": "^5.3.0",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import tseslint from '@typescript-eslint/eslint-plugin';
|
|
3
|
+
import tsparser from '@typescript-eslint/parser';
|
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
5
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
js.configs.recommended,
|
|
9
|
+
tseslint.configs.recommended,
|
|
10
|
+
reactHooks.configs.recommended,
|
|
11
|
+
{
|
|
12
|
+
ignores: ['dist', '.eslintrc.cjs'],
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
16
|
+
languageOptions: {
|
|
17
|
+
parser: tsparser,
|
|
18
|
+
parserOptions: {
|
|
19
|
+
ecmaVersion: 'latest',
|
|
20
|
+
sourceType: 'module',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
plugins: {
|
|
24
|
+
reactRefresh,
|
|
25
|
+
'@typescript-eslint': tseslint,
|
|
26
|
+
},
|
|
27
|
+
rules: {
|
|
28
|
+
'@typescript-eslint/no-unused-vars': [
|
|
29
|
+
'error',
|
|
30
|
+
{
|
|
31
|
+
args: 'all',
|
|
32
|
+
argsIgnorePattern: '^_',
|
|
33
|
+
caughtErrors: 'all',
|
|
34
|
+
caughtErrorsIgnorePattern: '^_',
|
|
35
|
+
destructuredArrayIgnorePattern: '^(_|set)',
|
|
36
|
+
varsIgnorePattern: '^_',
|
|
37
|
+
ignoreRestSiblings: true,
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
|
41
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import tseslint from '@typescript-eslint/eslint-plugin';
|
|
3
|
+
import tsparser from '@typescript-eslint/parser';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
js.configs.recommended,
|
|
7
|
+
tseslint.configs.recommended,
|
|
8
|
+
{
|
|
9
|
+
env: {
|
|
10
|
+
browser: true,
|
|
11
|
+
es2021: true,
|
|
12
|
+
jasmine: true,
|
|
13
|
+
},
|
|
14
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
15
|
+
languageOptions: {
|
|
16
|
+
parser: tsparser,
|
|
17
|
+
parserOptions: {
|
|
18
|
+
ecmaVersion: 12,
|
|
19
|
+
sourceType: 'module',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
plugins: {
|
|
23
|
+
'@typescript-eslint': tseslint,
|
|
24
|
+
},
|
|
25
|
+
rules: {
|
|
26
|
+
'@typescript-eslint/no-inferrable-types': 'off',
|
|
27
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from 'vite';
|
|
2
2
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
3
3
|
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
|
4
|
+
import { terser } from 'rollup-plugin-terser';
|
|
4
5
|
|
|
5
6
|
export default defineConfig({
|
|
6
7
|
build: {
|
|
@@ -18,8 +19,11 @@ export default defineConfig({
|
|
|
18
19
|
target: 'es2021',
|
|
19
20
|
minify: 'terser',
|
|
20
21
|
emptyOutDir: false,
|
|
22
|
+
chunkSizeWarningLimit: 10 * 1024 * 1024 // 10 MB
|
|
21
23
|
},
|
|
22
24
|
plugins: [
|
|
25
|
+
/** Minify JS */
|
|
26
|
+
terser(),
|
|
23
27
|
/** Copy static assets */
|
|
24
28
|
viteStaticCopy({
|
|
25
29
|
targets: [
|
|
@@ -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
|
-
}
|