@igniteui/angular-templates 19.0.14314-beta.7 → 19.0.14314-beta.8

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.
@@ -1,126 +1,34 @@
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";
1
+ import { FlatCompat } from '@eslint/eslintrc';
2
+
3
+ const compat = new FlatCompat();
5
4
 
6
5
  export default [
6
+ ...compat.extends('plugin:@angular-eslint/recommended', 'plugin:@angular-eslint/template/process-inline-templates'),
7
7
  {
8
- files: ["**/*.ts", "**/*.tsx"],
8
+ files: ['**/*.ts', '**/*.tsx'],
9
9
  languageOptions: {
10
- parser: typescriptParser,
11
10
  parserOptions: {
12
- project: "**/tsconfig.json",
13
- sourceType: "module",
11
+ project: ['tsconfig.json'],
12
+ createDefaultProgram: true,
14
13
  },
15
14
  },
16
- plugins: {
17
- import: eslintPluginImport,
18
- unicorn: eslintPluginUnicorn,
19
- "prefer-arrow": eslintPluginPreferArrow,
20
- },
21
15
  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
- },
16
+ '@angular-eslint/directive-selector': [
17
+ 'error',
18
+ { type: 'attribute', prefix: 'app', style: 'camelCase' },
67
19
  ],
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",
20
+ '@angular-eslint/component-selector': [
21
+ 'error',
22
+ { type: 'element', prefix: 'app', style: 'kebab-case' },
23
+ ]
115
24
  },
116
25
  },
26
+ ...compat.extends('plugin:@angular-eslint/template/recommended'),
27
+ {
28
+ files: ['**/*.html'],
29
+ rules: {},
30
+ },
117
31
  {
118
- ignores: [
119
- "node_modules/**/*",
120
- "coverage/**/*",
121
- "output/**/*",
122
- "packages/cli/templates/**/*",
123
- "**/files/**/*",
124
- ],
32
+ ignores: ['projects/**/*']
125
33
  },
126
34
  ];
@@ -46,8 +46,8 @@
46
46
  "@typescript-eslint/parser": "~8.21.0",
47
47
  "eslint": "~9.20.0",
48
48
  "eslint-plugin-import": "^2.29.1",
49
- "eslint-plugin-prefer-arrow": "^1.2.3",
50
- "eslint-plugin-unicorn": "^52.0.0",
49
+ "eslint-plugin-prefer-arrow": "^1.2.3",
50
+ "eslint-plugin-unicorn": "^52.0.0",
51
51
  "igniteui-cli": "~<%=cliVersion%>",
52
52
  "jasmine-core": "~5.1.0",
53
53
  "karma": "~6.4.0",
@@ -1,53 +1,35 @@
1
- import angularEslint from "@angular-eslint/eslint-plugin";
2
- import angularEslintTemplate from "@angular-eslint/eslint-plugin-template";
3
- import typescriptParser from "@typescript-eslint/parser";
1
+ import { FlatCompat } from '@eslint/eslintrc';
2
+
3
+ const compat = new FlatCompat();
4
4
 
5
5
  export default [
6
+ ...compat.extends('plugin:@angular-eslint/recommended', 'plugin:@angular-eslint/template/process-inline-templates'),
6
7
  {
7
- files: ["**/*.ts"],
8
+ files: ['**/*.ts', '**/*.tsx'],
8
9
  languageOptions: {
9
- parser: typescriptParser,
10
10
  parserOptions: {
11
- project: "tsconfig.json",
11
+ project: ['tsconfig.json'],
12
12
  createDefaultProgram: true,
13
13
  },
14
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
15
  rules: {
23
- "@angular-eslint/directive-selector": [
24
- "error",
25
- {
26
- type: "attribute",
27
- prefix: "app",
28
- style: "camelCase",
29
- },
16
+ '@angular-eslint/directive-selector': [
17
+ 'error',
18
+ { type: 'attribute', prefix: 'app', style: 'camelCase' },
30
19
  ],
31
- "@angular-eslint/component-selector": [
32
- "error",
33
- {
34
- type: "element",
35
- prefix: "app",
36
- style: "kebab-case",
37
- },
20
+ '@angular-eslint/component-selector': [
21
+ 'error',
22
+ { type: 'element', prefix: 'app', style: 'kebab-case' },
38
23
  ],
39
- "@angular-eslint/prefer-standalone": "off",
24
+ '@angular-eslint/prefer-standalone': 'off'
40
25
  },
41
26
  },
27
+ ...compat.extends('plugin:@angular-eslint/template/recommended'),
42
28
  {
43
- files: ["**/*.html"],
44
- plugins: {
45
- "@angular-eslint/template": angularEslintTemplate,
46
- },
47
- extends: ["plugin:@angular-eslint/template/recommended"],
29
+ files: ['**/*.html'],
48
30
  rules: {},
49
31
  },
50
32
  {
51
- ignores: ["projects/**/*"],
33
+ ignores: ['projects/**/*']
52
34
  },
53
35
  ];
@@ -46,8 +46,8 @@
46
46
  "@typescript-eslint/parser": "8.21.0",
47
47
  "eslint": "~9.20.0",
48
48
  "eslint-plugin-import": "^2.29.1",
49
- "eslint-plugin-prefer-arrow": "^1.2.3",
50
- "eslint-plugin-unicorn": "^52.0.0",
49
+ "eslint-plugin-prefer-arrow": "^1.2.3",
50
+ "eslint-plugin-unicorn": "^52.0.0",
51
51
  "igniteui-cli": "~<%=cliVersion%>",
52
52
  "jasmine-core": "~5.1.0",
53
53
  "karma": "~6.4.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igniteui/angular-templates",
3
- "version": "19.0.14314-beta.7",
3
+ "version": "19.0.14314-beta.8",
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.7",
15
+ "@igniteui/cli-core": "~14.3.14-beta.8",
16
16
  "typescript": "~5.5.4"
17
17
  }
18
18
  }