@taiga-ui/eslint-plugin-experience-next 0.292.0 → 0.293.0

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.
Files changed (2) hide show
  1. package/index.esm.js +11 -2
  2. package/package.json +4 -4
package/index.esm.js CHANGED
@@ -363,8 +363,7 @@ const modernAngularRules = {
363
363
  defaultStandalone: 19,
364
364
  modernStyles: 17,
365
365
  preferControlFlow: 17,
366
- preferSignals: 17
367
- };
366
+ preferSignals: 17};
368
367
  try {
369
368
  const {
370
369
  major
@@ -409,10 +408,12 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
409
408
  '@angular-eslint/contextual-decorator': 'error',
410
409
  '@angular-eslint/contextual-lifecycle': 'error',
411
410
  '@angular-eslint/directive-selector': 'error',
411
+ '@angular-eslint/no-async-lifecycle-method': 'error',
412
412
  '@angular-eslint/no-attribute-decorator': 'error',
413
413
  '@angular-eslint/no-conflicting-lifecycle': 'error',
414
414
  '@angular-eslint/no-duplicates-in-metadata-arrays': 'error',
415
415
  '@angular-eslint/no-empty-lifecycle-method': 'error',
416
+ '@angular-eslint/no-experimental': 'error',
416
417
  '@angular-eslint/no-input-prefix': 'error',
417
418
  '@angular-eslint/no-output-on-prefix': 'error',
418
419
  '@angular-eslint/no-queries-metadata-property': 'error',
@@ -962,11 +963,16 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
962
963
  }],
963
964
  '@angular-eslint/template/interactive-supports-focus': 'off',
964
965
  '@angular-eslint/template/label-has-associated-control': 'off',
966
+ '@angular-eslint/template/mouse-events-have-key-events': 'error',
965
967
  '@angular-eslint/template/no-distracting-elements': 'error',
966
968
  '@angular-eslint/template/no-duplicate-attributes': 'error',
969
+ '@angular-eslint/template/no-interpolation-in-attributes': 'error' ,
967
970
  '@angular-eslint/template/no-negated-async': 'off',
971
+ '@angular-eslint/template/prefer-at-empty': angularVersion >= modernAngularRules.preferControlFlow ? 'error' : 'off',
972
+ '@angular-eslint/template/prefer-contextual-for-variables': 'error',
968
973
  '@angular-eslint/template/prefer-control-flow': angularVersion >= modernAngularRules.preferControlFlow ? 'error' : 'off',
969
974
  '@angular-eslint/template/prefer-self-closing-tags': 'error',
975
+ '@angular-eslint/template/prefer-template-literal': 'error' ,
970
976
  '@typescript-eslint/await-thenable': 'off',
971
977
  '@typescript-eslint/ban-ts-comment': 'off',
972
978
  '@typescript-eslint/consistent-type-exports': 'off',
@@ -1705,6 +1711,9 @@ const config$2 = {
1705
1711
  const importedEntity = imported.name === local.name ? imported.name : `${imported.name} as ${local.name}`; // import {TUI_TEXTFIELD_OPTIONS as OPTIONS} from '@taiga-ui/core';
1706
1712
  return `import ${importDeclaration?.importKind === 'type ' ? 'type' : ''}{${importedEntity}} from '${entryPoints[i]}';`;
1707
1713
  });
1714
+ if (!importDeclaration.range) {
1715
+ return null;
1716
+ }
1708
1717
  return fixer.replaceTextRange(importDeclaration.range, newImports.join('\n'));
1709
1718
  },
1710
1719
  messageId: MESSAGE_ID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.292.0",
3
+ "version": "0.293.0",
4
4
  "description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
5
5
  "license": "Apache-2.0",
6
6
  "main": "index.ts",
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "peerDependencies": {
11
11
  "@eslint/compat": ">=1.3.1",
12
- "@smarttools/eslint-plugin-rxjs": ">=1.0.20",
13
- "@stylistic/eslint-plugin": ">=5.1.0",
12
+ "@smarttools/eslint-plugin-rxjs": ">=1.0.22",
13
+ "@stylistic/eslint-plugin": ">=5.2.0",
14
14
  "@types/glob": "*",
15
15
  "angular-eslint": ">=20.1.1",
16
16
  "eslint": ">=9.31.0",
@@ -30,7 +30,7 @@
30
30
  "eslint-plugin-unused-imports": ">=4.1.4",
31
31
  "glob": "*",
32
32
  "globals": ">=16.3.0",
33
- "typescript-eslint": ">=8.36.0"
33
+ "typescript-eslint": ">=8.37.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"