@igniteui/angular-templates 19.0.14314-beta.0 → 19.0.14314-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.
@@ -51,7 +51,7 @@
51
51
  },
52
52
  {
53
53
  "type": "anyComponentStyle",
54
- "maximumWarning": "6kb",
54
+ "maximumWarning": "8kb",
55
55
  "maximumError": "2mb"
56
56
  }
57
57
  ],
@@ -110,10 +110,11 @@
110
110
  "lint": {
111
111
  "builder": "@angular-eslint/builder:lint",
112
112
  "options": {
113
- "lintFilePatterns": [
114
- "src/**/*.ts",
115
- "src/**/*.html"
116
- ]
113
+ "eslintConfig": "eslint.config.mjs",
114
+ "lintFilePatterns": [
115
+ "src/**/*.ts",
116
+ "src/**/*.html"
117
+ ]
117
118
  }
118
119
  }
119
120
  }
@@ -0,0 +1,34 @@
1
+ import { FlatCompat } from '@eslint/eslintrc';
2
+
3
+ const compat = new FlatCompat();
4
+
5
+ export default [
6
+ ...compat.extends('plugin:@angular-eslint/recommended', 'plugin:@angular-eslint/template/process-inline-templates'),
7
+ {
8
+ files: ['**/*.ts', '**/*.tsx'],
9
+ languageOptions: {
10
+ parserOptions: {
11
+ project: ['tsconfig.json'],
12
+ createDefaultProgram: true,
13
+ },
14
+ },
15
+ rules: {
16
+ '@angular-eslint/directive-selector': [
17
+ 'error',
18
+ { type: 'attribute', prefix: 'app', style: 'camelCase' },
19
+ ],
20
+ '@angular-eslint/component-selector': [
21
+ 'error',
22
+ { type: 'element', prefix: 'app', style: 'kebab-case' },
23
+ ]
24
+ },
25
+ },
26
+ ...compat.extends('plugin:@angular-eslint/template/recommended'),
27
+ {
28
+ files: ['**/*.html'],
29
+ rules: {},
30
+ },
31
+ {
32
+ ignores: ['projects/**/*']
33
+ },
34
+ ];
@@ -45,6 +45,9 @@
45
45
  "@typescript-eslint/eslint-plugin": "~8.21.0",
46
46
  "@typescript-eslint/parser": "~8.21.0",
47
47
  "eslint": "~9.20.0",
48
+ "eslint-plugin-import": "^2.29.1",
49
+ "eslint-plugin-prefer-arrow": "^1.2.3",
50
+ "eslint-plugin-unicorn": "^52.0.0",
48
51
  "igniteui-cli": "~<%=cliVersion%>",
49
52
  "jasmine-core": "~5.1.0",
50
53
  "karma": "~6.4.0",
@@ -27,6 +27,12 @@
27
27
  "enableI18nLegacyMessageIdFormat": false,
28
28
  "strictInjectionParameters": true,
29
29
  "strictInputAccessModifiers": true,
30
- "strictTemplates": true
30
+ "strictTemplates": true,
31
+ // TODO: Remove this option when fixing https://infragistics.visualstudio.com/Indigo_Platform/_workitems/edit/30602
32
+ "extendedDiagnostics": {
33
+ "checks": {
34
+ "optionalChainNotNullable": "suppress"
35
+ }
36
+ }
31
37
  }
32
38
  }
@@ -52,7 +52,7 @@
52
52
  },
53
53
  {
54
54
  "type": "anyComponentStyle",
55
- "maximumWarning": "6kb",
55
+ "maximumWarning": "8kb",
56
56
  "maximumError": "2mb"
57
57
  }
58
58
  ],
@@ -116,6 +116,7 @@
116
116
  "lint": {
117
117
  "builder": "@angular-eslint/builder:lint",
118
118
  "options": {
119
+ "eslintConfig": "eslint.config.mjs",
119
120
  "lintFilePatterns": [
120
121
  "src/**/*.ts",
121
122
  "src/**/*.html"
@@ -0,0 +1,35 @@
1
+ import { FlatCompat } from '@eslint/eslintrc';
2
+
3
+ const compat = new FlatCompat();
4
+
5
+ export default [
6
+ ...compat.extends('plugin:@angular-eslint/recommended', 'plugin:@angular-eslint/template/process-inline-templates'),
7
+ {
8
+ files: ['**/*.ts', '**/*.tsx'],
9
+ languageOptions: {
10
+ parserOptions: {
11
+ project: ['tsconfig.json'],
12
+ createDefaultProgram: true,
13
+ },
14
+ },
15
+ rules: {
16
+ '@angular-eslint/directive-selector': [
17
+ 'error',
18
+ { type: 'attribute', prefix: 'app', style: 'camelCase' },
19
+ ],
20
+ '@angular-eslint/component-selector': [
21
+ 'error',
22
+ { type: 'element', prefix: 'app', style: 'kebab-case' },
23
+ ],
24
+ '@angular-eslint/prefer-standalone': 'off'
25
+ },
26
+ },
27
+ ...compat.extends('plugin:@angular-eslint/template/recommended'),
28
+ {
29
+ files: ['**/*.html'],
30
+ rules: {},
31
+ },
32
+ {
33
+ ignores: ['projects/**/*']
34
+ },
35
+ ];
@@ -45,6 +45,9 @@
45
45
  "@typescript-eslint/eslint-plugin": "8.21.0",
46
46
  "@typescript-eslint/parser": "8.21.0",
47
47
  "eslint": "~9.20.0",
48
+ "eslint-plugin-import": "^2.29.1",
49
+ "eslint-plugin-prefer-arrow": "^1.2.3",
50
+ "eslint-plugin-unicorn": "^52.0.0",
48
51
  "igniteui-cli": "~<%=cliVersion%>",
49
52
  "jasmine-core": "~5.1.0",
50
53
  "karma": "~6.4.0",
@@ -25,6 +25,12 @@
25
25
  "enableI18nLegacyMessageIdFormat": false,
26
26
  "strictInjectionParameters": true,
27
27
  "strictInputAccessModifiers": true,
28
- "strictTemplates": true
28
+ "strictTemplates": true,
29
+ // TODO: Remove this option when fixing https://infragistics.visualstudio.com/Indigo_Platform/_workitems/edit/30602
30
+ "extendedDiagnostics": {
31
+ "checks": {
32
+ "optionalChainNotNullable": "suppress"
33
+ }
34
+ }
29
35
  }
30
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igniteui/angular-templates",
3
- "version": "19.0.14314-beta.0",
3
+ "version": "19.0.14314-beta.10",
4
4
  "description": "Templates for Ignite UI for Angular projects and components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "author": "Infragistics",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@igniteui/cli-core": "~14.3.14-beta.0",
15
+ "@igniteui/cli-core": "~14.3.14-beta.10",
16
16
  "typescript": "~5.5.4"
17
17
  }
18
18
  }
@@ -1,126 +0,0 @@
1
- import eslintPluginImport from "eslint-plugin-import";
2
- import eslintPluginUnicorn from "eslint-plugin-unicorn";
3
- import eslintPluginPreferArrow from "eslint-plugin-prefer-arrow";
4
- import typescriptParser from "@typescript-eslint/parser";
5
-
6
- export default [
7
- {
8
- files: ["**/*.ts", "**/*.tsx"],
9
- languageOptions: {
10
- parser: typescriptParser,
11
- parserOptions: {
12
- project: "**/tsconfig.json",
13
- sourceType: "module",
14
- },
15
- },
16
- plugins: {
17
- import: eslintPluginImport,
18
- unicorn: eslintPluginUnicorn,
19
- "prefer-arrow": eslintPluginPreferArrow,
20
- },
21
- rules: {
22
- complexity: "off",
23
- "import/no-extraneous-dependencies": "warn",
24
- "import/no-internal-modules": "warn",
25
- "import/order": [
26
- "off",
27
- {
28
- alphabetize: {
29
- caseInsensitive: true,
30
- order: "asc",
31
- },
32
- "newlines-between": "ignore",
33
- groups: [
34
- ["builtin", "external", "internal", "unknown", "object", "type"],
35
- "parent",
36
- ["sibling", "index"],
37
- ],
38
- distinctGroup: false,
39
- pathGroupsExcludedImportTypes: [],
40
- pathGroups: [
41
- {
42
- pattern: "./",
43
- patternOptions: { nocomment: true, dot: true },
44
- group: "sibling",
45
- position: "before",
46
- },
47
- {
48
- pattern: ".",
49
- patternOptions: { nocomment: true, dot: true },
50
- group: "sibling",
51
- position: "before",
52
- },
53
- {
54
- pattern: "..",
55
- patternOptions: { nocomment: true, dot: true },
56
- group: "parent",
57
- position: "before",
58
- },
59
- {
60
- pattern: "../",
61
- patternOptions: { nocomment: true, dot: true },
62
- group: "parent",
63
- position: "before",
64
- },
65
- ],
66
- },
67
- ],
68
- "no-constant-condition": "warn",
69
- "no-case-declarations": "off",
70
- "no-extra-boolean-cast": "warn",
71
- "no-unused-vars": "off",
72
- "no-unexpected-multiline": "off",
73
- "no-useless-escape": "off",
74
- "new-parens": "error",
75
- "no-bitwise": "off",
76
- "no-caller": "error",
77
- "no-cond-assign": "error",
78
- "no-console": "off",
79
- "no-debugger": "error",
80
- "no-duplicate-case": "error",
81
- "no-duplicate-imports": "error",
82
- "no-empty": "off",
83
- "no-empty-function": "off",
84
- "no-eval": "error",
85
- "no-extra-bind": "error",
86
- "no-fallthrough": "off",
87
- "no-invalid-this": "off",
88
- "no-new-func": "error",
89
- "no-new-wrappers": "error",
90
- "no-redeclare": "error",
91
- "no-return-await": "error",
92
- "no-sequences": "error",
93
- "no-shadow": "off",
94
- "no-sparse-arrays": "error",
95
- "no-template-curly-in-string": "error",
96
- "no-throw-literal": "error",
97
- "no-trailing-spaces": "error",
98
- "no-undef-init": "error",
99
- "no-underscore-dangle": "off",
100
- "no-unsafe-finally": "error",
101
- "no-unused-expressions": "off",
102
- "no-unused-labels": "error",
103
- "no-use-before-define": "off",
104
- "no-var": "error",
105
- "object-shorthand": "warn",
106
- "one-var": ["error", "never"],
107
- "prefer-arrow/prefer-arrow-functions": "off",
108
- "prefer-const": "warn",
109
- "prefer-object-spread": "off",
110
- radix: "error",
111
- "space-in-parens": ["error", "never"],
112
- "unicorn/prefer-ternary": "off",
113
- "use-isnan": "error",
114
- "valid-typeof": "off",
115
- },
116
- },
117
- {
118
- ignores: [
119
- "node_modules/**/*",
120
- "coverage/**/*",
121
- "output/**/*",
122
- "packages/cli/templates/**/*",
123
- "**/files/**/*",
124
- ],
125
- },
126
- ];
@@ -1,53 +0,0 @@
1
- import angularEslint from "@angular-eslint/eslint-plugin";
2
- import angularEslintTemplate from "@angular-eslint/eslint-plugin-template";
3
- import typescriptParser from "@typescript-eslint/parser";
4
-
5
- export default [
6
- {
7
- files: ["**/*.ts"],
8
- languageOptions: {
9
- parser: typescriptParser,
10
- parserOptions: {
11
- project: "tsconfig.json",
12
- createDefaultProgram: true,
13
- },
14
- },
15
- plugins: {
16
- "@angular-eslint": angularEslint,
17
- },
18
- extends: [
19
- "plugin:@angular-eslint/recommended",
20
- "plugin:@angular-eslint/template/process-inline-templates",
21
- ],
22
- rules: {
23
- "@angular-eslint/directive-selector": [
24
- "error",
25
- {
26
- type: "attribute",
27
- prefix: "app",
28
- style: "camelCase",
29
- },
30
- ],
31
- "@angular-eslint/component-selector": [
32
- "error",
33
- {
34
- type: "element",
35
- prefix: "app",
36
- style: "kebab-case",
37
- },
38
- ],
39
- "@angular-eslint/prefer-standalone": "off",
40
- },
41
- },
42
- {
43
- files: ["**/*.html"],
44
- plugins: {
45
- "@angular-eslint/template": angularEslintTemplate,
46
- },
47
- extends: ["plugin:@angular-eslint/template/recommended"],
48
- rules: {},
49
- },
50
- {
51
- ignores: ["projects/**/*"],
52
- },
53
- ];