@taiga-ui/eslint-plugin-experience-next 0.547.0 → 0.548.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.
package/index.esm.js CHANGED
@@ -373,7 +373,7 @@ const TUI_RECOMMENDED_NAMING_CONVENTION = [
373
373
  {
374
374
  filter: {
375
375
  match: true,
376
- regex: String.raw `^(Infinity|NaN|Number|Math)$`,
376
+ regex: '^(Infinity|NaN|Number|Math)$',
377
377
  },
378
378
  format: null,
379
379
  selector: 'classProperty',
@@ -12688,15 +12688,28 @@ class ClassScope extends ScopeBase_1$e.ScopeBase {
12688
12688
  }
12689
12689
  ClassScope$1.ClassScope = ClassScope;
12690
12690
 
12691
+ var ClassStaticBlockScope$1 = {};
12692
+
12693
+ Object.defineProperty(ClassStaticBlockScope$1, "__esModule", { value: true });
12694
+ ClassStaticBlockScope$1.ClassStaticBlockScope = void 0;
12695
+ const ScopeBase_1$d = ScopeBase$1;
12696
+ const ScopeType_1$d = ScopeType$1;
12697
+ class ClassStaticBlockScope extends ScopeBase_1$d.ScopeBase {
12698
+ constructor(scopeManager, upperScope, block) {
12699
+ super(scopeManager, ScopeType_1$d.ScopeType.classStaticBlock, upperScope, block, false);
12700
+ }
12701
+ }
12702
+ ClassStaticBlockScope$1.ClassStaticBlockScope = ClassStaticBlockScope;
12703
+
12691
12704
  var ConditionalTypeScope$1 = {};
12692
12705
 
12693
12706
  Object.defineProperty(ConditionalTypeScope$1, "__esModule", { value: true });
12694
12707
  ConditionalTypeScope$1.ConditionalTypeScope = void 0;
12695
- const ScopeBase_1$d = ScopeBase$1;
12696
- const ScopeType_1$d = ScopeType$1;
12697
- class ConditionalTypeScope extends ScopeBase_1$d.ScopeBase {
12708
+ const ScopeBase_1$c = ScopeBase$1;
12709
+ const ScopeType_1$c = ScopeType$1;
12710
+ class ConditionalTypeScope extends ScopeBase_1$c.ScopeBase {
12698
12711
  constructor(scopeManager, upperScope, block) {
12699
- super(scopeManager, ScopeType_1$d.ScopeType.conditionalType, upperScope, block, false);
12712
+ super(scopeManager, ScopeType_1$c.ScopeType.conditionalType, upperScope, block, false);
12700
12713
  }
12701
12714
  }
12702
12715
  ConditionalTypeScope$1.ConditionalTypeScope = ConditionalTypeScope;
@@ -12705,11 +12718,11 @@ var ForScope$1 = {};
12705
12718
 
12706
12719
  Object.defineProperty(ForScope$1, "__esModule", { value: true });
12707
12720
  ForScope$1.ForScope = void 0;
12708
- const ScopeBase_1$c = ScopeBase$1;
12709
- const ScopeType_1$c = ScopeType$1;
12710
- class ForScope extends ScopeBase_1$c.ScopeBase {
12721
+ const ScopeBase_1$b = ScopeBase$1;
12722
+ const ScopeType_1$b = ScopeType$1;
12723
+ class ForScope extends ScopeBase_1$b.ScopeBase {
12711
12724
  constructor(scopeManager, upperScope, block) {
12712
- super(scopeManager, ScopeType_1$c.ScopeType.for, upperScope, block, false);
12725
+ super(scopeManager, ScopeType_1$b.ScopeType.for, upperScope, block, false);
12713
12726
  }
12714
12727
  }
12715
12728
  ForScope$1.ForScope = ForScope;
@@ -12719,12 +12732,12 @@ var FunctionExpressionNameScope$1 = {};
12719
12732
  Object.defineProperty(FunctionExpressionNameScope$1, "__esModule", { value: true });
12720
12733
  FunctionExpressionNameScope$1.FunctionExpressionNameScope = void 0;
12721
12734
  const definition_1$4 = definition;
12722
- const ScopeBase_1$b = ScopeBase$1;
12723
- const ScopeType_1$b = ScopeType$1;
12724
- class FunctionExpressionNameScope extends ScopeBase_1$b.ScopeBase {
12735
+ const ScopeBase_1$a = ScopeBase$1;
12736
+ const ScopeType_1$a = ScopeType$1;
12737
+ class FunctionExpressionNameScope extends ScopeBase_1$a.ScopeBase {
12725
12738
  functionExpressionScope;
12726
12739
  constructor(scopeManager, upperScope, block) {
12727
- super(scopeManager, ScopeType_1$b.ScopeType.functionExpressionName, upperScope, block, false);
12740
+ super(scopeManager, ScopeType_1$a.ScopeType.functionExpressionName, upperScope, block, false);
12728
12741
  if (block.id) {
12729
12742
  this.defineIdentifier(block.id, new definition_1$4.FunctionNameDefinition(block.id, block));
12730
12743
  }
@@ -12738,11 +12751,11 @@ var FunctionScope$1 = {};
12738
12751
  Object.defineProperty(FunctionScope$1, "__esModule", { value: true });
12739
12752
  FunctionScope$1.FunctionScope = void 0;
12740
12753
  const types_1$6 = dist$3;
12741
- const ScopeBase_1$a = ScopeBase$1;
12742
- const ScopeType_1$a = ScopeType$1;
12743
- class FunctionScope extends ScopeBase_1$a.ScopeBase {
12754
+ const ScopeBase_1$9 = ScopeBase$1;
12755
+ const ScopeType_1$9 = ScopeType$1;
12756
+ class FunctionScope extends ScopeBase_1$9.ScopeBase {
12744
12757
  constructor(scopeManager, upperScope, block, isMethodDefinition) {
12745
- super(scopeManager, ScopeType_1$a.ScopeType.function, upperScope, block, isMethodDefinition);
12758
+ super(scopeManager, ScopeType_1$9.ScopeType.function, upperScope, block, isMethodDefinition);
12746
12759
  // section 9.2.13, FunctionDeclarationInstantiation.
12747
12760
  // NOTE Arrow functions never have an arguments objects.
12748
12761
  if (this.block.type !== types_1$6.AST_NODE_TYPES.ArrowFunctionExpression) {
@@ -12774,11 +12787,11 @@ var FunctionTypeScope$1 = {};
12774
12787
 
12775
12788
  Object.defineProperty(FunctionTypeScope$1, "__esModule", { value: true });
12776
12789
  FunctionTypeScope$1.FunctionTypeScope = void 0;
12777
- const ScopeBase_1$9 = ScopeBase$1;
12778
- const ScopeType_1$9 = ScopeType$1;
12779
- class FunctionTypeScope extends ScopeBase_1$9.ScopeBase {
12790
+ const ScopeBase_1$8 = ScopeBase$1;
12791
+ const ScopeType_1$8 = ScopeType$1;
12792
+ class FunctionTypeScope extends ScopeBase_1$8.ScopeBase {
12780
12793
  constructor(scopeManager, upperScope, block) {
12781
- super(scopeManager, ScopeType_1$9.ScopeType.functionType, upperScope, block, false);
12794
+ super(scopeManager, ScopeType_1$8.ScopeType.functionType, upperScope, block, false);
12782
12795
  }
12783
12796
  }
12784
12797
  FunctionTypeScope$1.FunctionTypeScope = FunctionTypeScope;
@@ -12791,13 +12804,13 @@ const types_1$5 = dist$3;
12791
12804
  const assert_1$3 = assert$1;
12792
12805
  const ImplicitGlobalVariableDefinition_1 = ImplicitGlobalVariableDefinition$1;
12793
12806
  const variable_1 = variable$1;
12794
- const ScopeBase_1$8 = ScopeBase$1;
12795
- const ScopeType_1$8 = ScopeType$1;
12796
- class GlobalScope extends ScopeBase_1$8.ScopeBase {
12807
+ const ScopeBase_1$7 = ScopeBase$1;
12808
+ const ScopeType_1$7 = ScopeType$1;
12809
+ class GlobalScope extends ScopeBase_1$7.ScopeBase {
12797
12810
  // note this is accessed in used in the legacy eslint-scope tests, so it can't be true private
12798
12811
  implicit;
12799
12812
  constructor(scopeManager, block) {
12800
- super(scopeManager, ScopeType_1$8.ScopeType.global, null, block, false);
12813
+ super(scopeManager, ScopeType_1$7.ScopeType.global, null, block, false);
12801
12814
  this.implicit = {
12802
12815
  leftToBeResolved: [],
12803
12816
  set: new Map(),
@@ -12849,11 +12862,11 @@ var MappedTypeScope$1 = {};
12849
12862
 
12850
12863
  Object.defineProperty(MappedTypeScope$1, "__esModule", { value: true });
12851
12864
  MappedTypeScope$1.MappedTypeScope = void 0;
12852
- const ScopeBase_1$7 = ScopeBase$1;
12853
- const ScopeType_1$7 = ScopeType$1;
12854
- class MappedTypeScope extends ScopeBase_1$7.ScopeBase {
12865
+ const ScopeBase_1$6 = ScopeBase$1;
12866
+ const ScopeType_1$6 = ScopeType$1;
12867
+ class MappedTypeScope extends ScopeBase_1$6.ScopeBase {
12855
12868
  constructor(scopeManager, upperScope, block) {
12856
- super(scopeManager, ScopeType_1$7.ScopeType.mappedType, upperScope, block, false);
12869
+ super(scopeManager, ScopeType_1$6.ScopeType.mappedType, upperScope, block, false);
12857
12870
  }
12858
12871
  }
12859
12872
  MappedTypeScope$1.MappedTypeScope = MappedTypeScope;
@@ -12862,11 +12875,11 @@ var ModuleScope$1 = {};
12862
12875
 
12863
12876
  Object.defineProperty(ModuleScope$1, "__esModule", { value: true });
12864
12877
  ModuleScope$1.ModuleScope = void 0;
12865
- const ScopeBase_1$6 = ScopeBase$1;
12866
- const ScopeType_1$6 = ScopeType$1;
12867
- class ModuleScope extends ScopeBase_1$6.ScopeBase {
12878
+ const ScopeBase_1$5 = ScopeBase$1;
12879
+ const ScopeType_1$5 = ScopeType$1;
12880
+ class ModuleScope extends ScopeBase_1$5.ScopeBase {
12868
12881
  constructor(scopeManager, upperScope, block) {
12869
- super(scopeManager, ScopeType_1$6.ScopeType.module, upperScope, block, false);
12882
+ super(scopeManager, ScopeType_1$5.ScopeType.module, upperScope, block, false);
12870
12883
  }
12871
12884
  }
12872
12885
  ModuleScope$1.ModuleScope = ModuleScope;
@@ -12879,11 +12892,11 @@ var SwitchScope$1 = {};
12879
12892
 
12880
12893
  Object.defineProperty(SwitchScope$1, "__esModule", { value: true });
12881
12894
  SwitchScope$1.SwitchScope = void 0;
12882
- const ScopeBase_1$5 = ScopeBase$1;
12883
- const ScopeType_1$5 = ScopeType$1;
12884
- class SwitchScope extends ScopeBase_1$5.ScopeBase {
12895
+ const ScopeBase_1$4 = ScopeBase$1;
12896
+ const ScopeType_1$4 = ScopeType$1;
12897
+ class SwitchScope extends ScopeBase_1$4.ScopeBase {
12885
12898
  constructor(scopeManager, upperScope, block) {
12886
- super(scopeManager, ScopeType_1$5.ScopeType.switch, upperScope, block, false);
12899
+ super(scopeManager, ScopeType_1$4.ScopeType.switch, upperScope, block, false);
12887
12900
  }
12888
12901
  }
12889
12902
  SwitchScope$1.SwitchScope = SwitchScope;
@@ -12892,11 +12905,11 @@ var TSEnumScope$1 = {};
12892
12905
 
12893
12906
  Object.defineProperty(TSEnumScope$1, "__esModule", { value: true });
12894
12907
  TSEnumScope$1.TSEnumScope = void 0;
12895
- const ScopeBase_1$4 = ScopeBase$1;
12896
- const ScopeType_1$4 = ScopeType$1;
12897
- class TSEnumScope extends ScopeBase_1$4.ScopeBase {
12908
+ const ScopeBase_1$3 = ScopeBase$1;
12909
+ const ScopeType_1$3 = ScopeType$1;
12910
+ class TSEnumScope extends ScopeBase_1$3.ScopeBase {
12898
12911
  constructor(scopeManager, upperScope, block) {
12899
- super(scopeManager, ScopeType_1$4.ScopeType.tsEnum, upperScope, block, false);
12912
+ super(scopeManager, ScopeType_1$3.ScopeType.tsEnum, upperScope, block, false);
12900
12913
  }
12901
12914
  }
12902
12915
  TSEnumScope$1.TSEnumScope = TSEnumScope;
@@ -12905,11 +12918,11 @@ var TSModuleScope$1 = {};
12905
12918
 
12906
12919
  Object.defineProperty(TSModuleScope$1, "__esModule", { value: true });
12907
12920
  TSModuleScope$1.TSModuleScope = void 0;
12908
- const ScopeBase_1$3 = ScopeBase$1;
12909
- const ScopeType_1$3 = ScopeType$1;
12910
- class TSModuleScope extends ScopeBase_1$3.ScopeBase {
12921
+ const ScopeBase_1$2 = ScopeBase$1;
12922
+ const ScopeType_1$2 = ScopeType$1;
12923
+ class TSModuleScope extends ScopeBase_1$2.ScopeBase {
12911
12924
  constructor(scopeManager, upperScope, block) {
12912
- super(scopeManager, ScopeType_1$3.ScopeType.tsModule, upperScope, block, false);
12925
+ super(scopeManager, ScopeType_1$2.ScopeType.tsModule, upperScope, block, false);
12913
12926
  }
12914
12927
  }
12915
12928
  TSModuleScope$1.TSModuleScope = TSModuleScope;
@@ -12918,11 +12931,11 @@ var TypeScope$1 = {};
12918
12931
 
12919
12932
  Object.defineProperty(TypeScope$1, "__esModule", { value: true });
12920
12933
  TypeScope$1.TypeScope = void 0;
12921
- const ScopeBase_1$2 = ScopeBase$1;
12922
- const ScopeType_1$2 = ScopeType$1;
12923
- class TypeScope extends ScopeBase_1$2.ScopeBase {
12934
+ const ScopeBase_1$1 = ScopeBase$1;
12935
+ const ScopeType_1$1 = ScopeType$1;
12936
+ class TypeScope extends ScopeBase_1$1.ScopeBase {
12924
12937
  constructor(scopeManager, upperScope, block) {
12925
- super(scopeManager, ScopeType_1$2.ScopeType.type, upperScope, block, false);
12938
+ super(scopeManager, ScopeType_1$1.ScopeType.type, upperScope, block, false);
12926
12939
  }
12927
12940
  }
12928
12941
  TypeScope$1.TypeScope = TypeScope;
@@ -12932,11 +12945,11 @@ var WithScope$1 = {};
12932
12945
  Object.defineProperty(WithScope$1, "__esModule", { value: true });
12933
12946
  WithScope$1.WithScope = void 0;
12934
12947
  const assert_1$2 = assert$1;
12935
- const ScopeBase_1$1 = ScopeBase$1;
12936
- const ScopeType_1$1 = ScopeType$1;
12937
- class WithScope extends ScopeBase_1$1.ScopeBase {
12948
+ const ScopeBase_1 = ScopeBase$1;
12949
+ const ScopeType_1 = ScopeType$1;
12950
+ class WithScope extends ScopeBase_1.ScopeBase {
12938
12951
  constructor(scopeManager, upperScope, block) {
12939
- super(scopeManager, ScopeType_1$1.ScopeType.with, upperScope, block, false);
12952
+ super(scopeManager, ScopeType_1.ScopeType.with, upperScope, block, false);
12940
12953
  }
12941
12954
  close(scopeManager) {
12942
12955
  if (this.shouldStaticallyClose()) {
@@ -12970,6 +12983,7 @@ WithScope$1.WithScope = WithScope;
12970
12983
  __exportStar(CatchScope$1, exports);
12971
12984
  __exportStar(ClassFieldInitializerScope$1, exports);
12972
12985
  __exportStar(ClassScope$1, exports);
12986
+ __exportStar(ClassStaticBlockScope$1, exports);
12973
12987
  __exportStar(ConditionalTypeScope$1, exports);
12974
12988
  __exportStar(ForScope$1, exports);
12975
12989
  __exportStar(FunctionExpressionNameScope$1, exports);
@@ -14252,19 +14266,6 @@ Referencer$1.Referencer = Referencer;
14252
14266
 
14253
14267
  var ScopeManager$1 = {};
14254
14268
 
14255
- var ClassStaticBlockScope$1 = {};
14256
-
14257
- Object.defineProperty(ClassStaticBlockScope$1, "__esModule", { value: true });
14258
- ClassStaticBlockScope$1.ClassStaticBlockScope = void 0;
14259
- const ScopeBase_1 = ScopeBase$1;
14260
- const ScopeType_1 = ScopeType$1;
14261
- class ClassStaticBlockScope extends ScopeBase_1.ScopeBase {
14262
- constructor(scopeManager, upperScope, block) {
14263
- super(scopeManager, ScopeType_1.ScopeType.classStaticBlock, upperScope, block, false);
14264
- }
14265
- }
14266
- ClassStaticBlockScope$1.ClassStaticBlockScope = ClassStaticBlockScope;
14267
-
14268
14269
  Object.defineProperty(ScopeManager$1, "__esModule", { value: true });
14269
14270
  ScopeManager$1.ScopeManager = void 0;
14270
14271
  const assert_1 = assert$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.547.0",
3
+ "version": "0.548.0",
4
4
  "description": "An ESLint plugin to enforce a consistent code styles across taiga-ui projects",
5
5
  "homepage": "https://github.com/taiga-family/toolkit#readme",
6
6
  "bugs": {
@@ -51,7 +51,7 @@
51
51
  "eslint-plugin-regexp": "3.1.0",
52
52
  "eslint-plugin-simple-import-sort": "13.0.0",
53
53
  "eslint-plugin-sonarjs": "4.0.3",
54
- "eslint-plugin-unicorn": "64.0.0",
54
+ "eslint-plugin-unicorn": "65.0.0",
55
55
  "eslint-plugin-unused-imports": "4.4.1",
56
56
  "globals": "17.6.0",
57
57
  "typescript-eslint": "8.60.1"
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "peerDependencies": {
63
63
  "eslint": "^9.39.4",
64
- "typescript": ">=5.7.0 <6.0.0"
64
+ "typescript": ">=5.7.0 <7.0.0"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"
@@ -7,7 +7,7 @@ export declare const TUI_RECOMMENDED_NAMING_CONVENTION: readonly [{
7
7
  }, {
8
8
  readonly filter: {
9
9
  readonly match: true;
10
- readonly regex: string;
10
+ readonly regex: "^(Infinity|NaN|Number|Math)$";
11
11
  };
12
12
  readonly format: null;
13
13
  readonly selector: "classProperty";
@@ -38,7 +38,7 @@ export declare const TUI_CUSTOM_TAIGA_NAMING_CONVENTION: readonly [{
38
38
  }, {
39
39
  readonly filter: {
40
40
  readonly match: true;
41
- readonly regex: string;
41
+ readonly regex: "^(Infinity|NaN|Number|Math)$";
42
42
  };
43
43
  readonly format: null;
44
44
  readonly selector: "classProperty";