@taiga-ui/eslint-plugin-experience-next 0.554.0 → 0.555.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 +80 -70
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -36,7 +36,7 @@ function getDefaultExportFromCjs (x) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
var name$1 = "@eslint/js";
|
|
39
|
-
var version$1 = "9.39.
|
|
39
|
+
var version$1 = "9.39.5";
|
|
40
40
|
var require$$0 = {
|
|
41
41
|
name: name$1,
|
|
42
42
|
version: version$1};
|
|
@@ -1585,7 +1585,16 @@ var recommended = defineConfig([
|
|
|
1585
1585
|
selector: 'function',
|
|
1586
1586
|
},
|
|
1587
1587
|
],
|
|
1588
|
-
|
|
1588
|
+
},
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
files: ['**/*.{jsx,tsx}'],
|
|
1592
|
+
ignores: ['**/*.cy.{jsx,tsx}'],
|
|
1593
|
+
rules: {
|
|
1594
|
+
'unicorn/filename-case': [
|
|
1595
|
+
'error',
|
|
1596
|
+
{ case: 'pascalCase', checkDirectories: false },
|
|
1597
|
+
],
|
|
1589
1598
|
},
|
|
1590
1599
|
},
|
|
1591
1600
|
{
|
|
@@ -2428,7 +2437,7 @@ eslintVisitorKeys$2.unionWith = unionWith$1;
|
|
|
2428
2437
|
}
|
|
2429
2438
|
}
|
|
2430
2439
|
|
|
2431
|
-
/* globals
|
|
2440
|
+
/* globals self, window */
|
|
2432
2441
|
/** @typedef {import("./types.mjs").StaticValue} StaticValue */
|
|
2433
2442
|
/** @typedef {import("eslint").Scope.Scope} Scope */
|
|
2434
2443
|
/** @typedef {import("eslint").Scope.Variable} Variable */
|
|
@@ -12687,15 +12696,28 @@ class ClassScope extends ScopeBase_1$e.ScopeBase {
|
|
|
12687
12696
|
}
|
|
12688
12697
|
ClassScope$1.ClassScope = ClassScope;
|
|
12689
12698
|
|
|
12699
|
+
var ClassStaticBlockScope$1 = {};
|
|
12700
|
+
|
|
12701
|
+
Object.defineProperty(ClassStaticBlockScope$1, "__esModule", { value: true });
|
|
12702
|
+
ClassStaticBlockScope$1.ClassStaticBlockScope = void 0;
|
|
12703
|
+
const ScopeBase_1$d = ScopeBase$1;
|
|
12704
|
+
const ScopeType_1$d = ScopeType$1;
|
|
12705
|
+
class ClassStaticBlockScope extends ScopeBase_1$d.ScopeBase {
|
|
12706
|
+
constructor(scopeManager, upperScope, block) {
|
|
12707
|
+
super(scopeManager, ScopeType_1$d.ScopeType.classStaticBlock, upperScope, block, false);
|
|
12708
|
+
}
|
|
12709
|
+
}
|
|
12710
|
+
ClassStaticBlockScope$1.ClassStaticBlockScope = ClassStaticBlockScope;
|
|
12711
|
+
|
|
12690
12712
|
var ConditionalTypeScope$1 = {};
|
|
12691
12713
|
|
|
12692
12714
|
Object.defineProperty(ConditionalTypeScope$1, "__esModule", { value: true });
|
|
12693
12715
|
ConditionalTypeScope$1.ConditionalTypeScope = void 0;
|
|
12694
|
-
const ScopeBase_1$
|
|
12695
|
-
const ScopeType_1$
|
|
12696
|
-
class ConditionalTypeScope extends ScopeBase_1$
|
|
12716
|
+
const ScopeBase_1$c = ScopeBase$1;
|
|
12717
|
+
const ScopeType_1$c = ScopeType$1;
|
|
12718
|
+
class ConditionalTypeScope extends ScopeBase_1$c.ScopeBase {
|
|
12697
12719
|
constructor(scopeManager, upperScope, block) {
|
|
12698
|
-
super(scopeManager, ScopeType_1$
|
|
12720
|
+
super(scopeManager, ScopeType_1$c.ScopeType.conditionalType, upperScope, block, false);
|
|
12699
12721
|
}
|
|
12700
12722
|
}
|
|
12701
12723
|
ConditionalTypeScope$1.ConditionalTypeScope = ConditionalTypeScope;
|
|
@@ -12704,11 +12726,11 @@ var ForScope$1 = {};
|
|
|
12704
12726
|
|
|
12705
12727
|
Object.defineProperty(ForScope$1, "__esModule", { value: true });
|
|
12706
12728
|
ForScope$1.ForScope = void 0;
|
|
12707
|
-
const ScopeBase_1$
|
|
12708
|
-
const ScopeType_1$
|
|
12709
|
-
class ForScope extends ScopeBase_1$
|
|
12729
|
+
const ScopeBase_1$b = ScopeBase$1;
|
|
12730
|
+
const ScopeType_1$b = ScopeType$1;
|
|
12731
|
+
class ForScope extends ScopeBase_1$b.ScopeBase {
|
|
12710
12732
|
constructor(scopeManager, upperScope, block) {
|
|
12711
|
-
super(scopeManager, ScopeType_1$
|
|
12733
|
+
super(scopeManager, ScopeType_1$b.ScopeType.for, upperScope, block, false);
|
|
12712
12734
|
}
|
|
12713
12735
|
}
|
|
12714
12736
|
ForScope$1.ForScope = ForScope;
|
|
@@ -12718,12 +12740,12 @@ var FunctionExpressionNameScope$1 = {};
|
|
|
12718
12740
|
Object.defineProperty(FunctionExpressionNameScope$1, "__esModule", { value: true });
|
|
12719
12741
|
FunctionExpressionNameScope$1.FunctionExpressionNameScope = void 0;
|
|
12720
12742
|
const definition_1$4 = definition;
|
|
12721
|
-
const ScopeBase_1$
|
|
12722
|
-
const ScopeType_1$
|
|
12723
|
-
class FunctionExpressionNameScope extends ScopeBase_1$
|
|
12743
|
+
const ScopeBase_1$a = ScopeBase$1;
|
|
12744
|
+
const ScopeType_1$a = ScopeType$1;
|
|
12745
|
+
class FunctionExpressionNameScope extends ScopeBase_1$a.ScopeBase {
|
|
12724
12746
|
functionExpressionScope;
|
|
12725
12747
|
constructor(scopeManager, upperScope, block) {
|
|
12726
|
-
super(scopeManager, ScopeType_1$
|
|
12748
|
+
super(scopeManager, ScopeType_1$a.ScopeType.functionExpressionName, upperScope, block, false);
|
|
12727
12749
|
if (block.id) {
|
|
12728
12750
|
this.defineIdentifier(block.id, new definition_1$4.FunctionNameDefinition(block.id, block));
|
|
12729
12751
|
}
|
|
@@ -12737,11 +12759,11 @@ var FunctionScope$1 = {};
|
|
|
12737
12759
|
Object.defineProperty(FunctionScope$1, "__esModule", { value: true });
|
|
12738
12760
|
FunctionScope$1.FunctionScope = void 0;
|
|
12739
12761
|
const types_1$6 = dist$3;
|
|
12740
|
-
const ScopeBase_1$
|
|
12741
|
-
const ScopeType_1$
|
|
12742
|
-
class FunctionScope extends ScopeBase_1$
|
|
12762
|
+
const ScopeBase_1$9 = ScopeBase$1;
|
|
12763
|
+
const ScopeType_1$9 = ScopeType$1;
|
|
12764
|
+
class FunctionScope extends ScopeBase_1$9.ScopeBase {
|
|
12743
12765
|
constructor(scopeManager, upperScope, block, isMethodDefinition) {
|
|
12744
|
-
super(scopeManager, ScopeType_1$
|
|
12766
|
+
super(scopeManager, ScopeType_1$9.ScopeType.function, upperScope, block, isMethodDefinition);
|
|
12745
12767
|
// section 9.2.13, FunctionDeclarationInstantiation.
|
|
12746
12768
|
// NOTE Arrow functions never have an arguments objects.
|
|
12747
12769
|
if (this.block.type !== types_1$6.AST_NODE_TYPES.ArrowFunctionExpression) {
|
|
@@ -12761,9 +12783,9 @@ class FunctionScope extends ScopeBase_1$a.ScopeBase {
|
|
|
12761
12783
|
}
|
|
12762
12784
|
const bodyStart = this.block.body?.range[0] ?? -1;
|
|
12763
12785
|
// It's invalid resolution in the following case:
|
|
12764
|
-
return !(
|
|
12786
|
+
return !(variable.scope === this &&
|
|
12765
12787
|
ref.identifier.range[0] < bodyStart && // the reference is in the parameter part.
|
|
12766
|
-
variable.defs.every(d => d.name.range[0] >= bodyStart)
|
|
12788
|
+
variable.defs.every(d => d.name.range[0] >= bodyStart) // the variable is in the body.
|
|
12767
12789
|
);
|
|
12768
12790
|
}
|
|
12769
12791
|
}
|
|
@@ -12773,11 +12795,11 @@ var FunctionTypeScope$1 = {};
|
|
|
12773
12795
|
|
|
12774
12796
|
Object.defineProperty(FunctionTypeScope$1, "__esModule", { value: true });
|
|
12775
12797
|
FunctionTypeScope$1.FunctionTypeScope = void 0;
|
|
12776
|
-
const ScopeBase_1$
|
|
12777
|
-
const ScopeType_1$
|
|
12778
|
-
class FunctionTypeScope extends ScopeBase_1$
|
|
12798
|
+
const ScopeBase_1$8 = ScopeBase$1;
|
|
12799
|
+
const ScopeType_1$8 = ScopeType$1;
|
|
12800
|
+
class FunctionTypeScope extends ScopeBase_1$8.ScopeBase {
|
|
12779
12801
|
constructor(scopeManager, upperScope, block) {
|
|
12780
|
-
super(scopeManager, ScopeType_1$
|
|
12802
|
+
super(scopeManager, ScopeType_1$8.ScopeType.functionType, upperScope, block, false);
|
|
12781
12803
|
}
|
|
12782
12804
|
}
|
|
12783
12805
|
FunctionTypeScope$1.FunctionTypeScope = FunctionTypeScope;
|
|
@@ -12790,13 +12812,13 @@ const types_1$5 = dist$3;
|
|
|
12790
12812
|
const assert_1$3 = assert$1;
|
|
12791
12813
|
const ImplicitGlobalVariableDefinition_1 = ImplicitGlobalVariableDefinition$1;
|
|
12792
12814
|
const variable_1 = variable$1;
|
|
12793
|
-
const ScopeBase_1$
|
|
12794
|
-
const ScopeType_1$
|
|
12795
|
-
class GlobalScope extends ScopeBase_1$
|
|
12815
|
+
const ScopeBase_1$7 = ScopeBase$1;
|
|
12816
|
+
const ScopeType_1$7 = ScopeType$1;
|
|
12817
|
+
class GlobalScope extends ScopeBase_1$7.ScopeBase {
|
|
12796
12818
|
// note this is accessed in used in the legacy eslint-scope tests, so it can't be true private
|
|
12797
12819
|
implicit;
|
|
12798
12820
|
constructor(scopeManager, block) {
|
|
12799
|
-
super(scopeManager, ScopeType_1$
|
|
12821
|
+
super(scopeManager, ScopeType_1$7.ScopeType.global, null, block, false);
|
|
12800
12822
|
this.implicit = {
|
|
12801
12823
|
leftToBeResolved: [],
|
|
12802
12824
|
set: new Map(),
|
|
@@ -12848,11 +12870,11 @@ var MappedTypeScope$1 = {};
|
|
|
12848
12870
|
|
|
12849
12871
|
Object.defineProperty(MappedTypeScope$1, "__esModule", { value: true });
|
|
12850
12872
|
MappedTypeScope$1.MappedTypeScope = void 0;
|
|
12851
|
-
const ScopeBase_1$
|
|
12852
|
-
const ScopeType_1$
|
|
12853
|
-
class MappedTypeScope extends ScopeBase_1$
|
|
12873
|
+
const ScopeBase_1$6 = ScopeBase$1;
|
|
12874
|
+
const ScopeType_1$6 = ScopeType$1;
|
|
12875
|
+
class MappedTypeScope extends ScopeBase_1$6.ScopeBase {
|
|
12854
12876
|
constructor(scopeManager, upperScope, block) {
|
|
12855
|
-
super(scopeManager, ScopeType_1$
|
|
12877
|
+
super(scopeManager, ScopeType_1$6.ScopeType.mappedType, upperScope, block, false);
|
|
12856
12878
|
}
|
|
12857
12879
|
}
|
|
12858
12880
|
MappedTypeScope$1.MappedTypeScope = MappedTypeScope;
|
|
@@ -12861,11 +12883,11 @@ var ModuleScope$1 = {};
|
|
|
12861
12883
|
|
|
12862
12884
|
Object.defineProperty(ModuleScope$1, "__esModule", { value: true });
|
|
12863
12885
|
ModuleScope$1.ModuleScope = void 0;
|
|
12864
|
-
const ScopeBase_1$
|
|
12865
|
-
const ScopeType_1$
|
|
12866
|
-
class ModuleScope extends ScopeBase_1$
|
|
12886
|
+
const ScopeBase_1$5 = ScopeBase$1;
|
|
12887
|
+
const ScopeType_1$5 = ScopeType$1;
|
|
12888
|
+
class ModuleScope extends ScopeBase_1$5.ScopeBase {
|
|
12867
12889
|
constructor(scopeManager, upperScope, block) {
|
|
12868
|
-
super(scopeManager, ScopeType_1$
|
|
12890
|
+
super(scopeManager, ScopeType_1$5.ScopeType.module, upperScope, block, false);
|
|
12869
12891
|
}
|
|
12870
12892
|
}
|
|
12871
12893
|
ModuleScope$1.ModuleScope = ModuleScope;
|
|
@@ -12878,11 +12900,11 @@ var SwitchScope$1 = {};
|
|
|
12878
12900
|
|
|
12879
12901
|
Object.defineProperty(SwitchScope$1, "__esModule", { value: true });
|
|
12880
12902
|
SwitchScope$1.SwitchScope = void 0;
|
|
12881
|
-
const ScopeBase_1$
|
|
12882
|
-
const ScopeType_1$
|
|
12883
|
-
class SwitchScope extends ScopeBase_1$
|
|
12903
|
+
const ScopeBase_1$4 = ScopeBase$1;
|
|
12904
|
+
const ScopeType_1$4 = ScopeType$1;
|
|
12905
|
+
class SwitchScope extends ScopeBase_1$4.ScopeBase {
|
|
12884
12906
|
constructor(scopeManager, upperScope, block) {
|
|
12885
|
-
super(scopeManager, ScopeType_1$
|
|
12907
|
+
super(scopeManager, ScopeType_1$4.ScopeType.switch, upperScope, block, false);
|
|
12886
12908
|
}
|
|
12887
12909
|
}
|
|
12888
12910
|
SwitchScope$1.SwitchScope = SwitchScope;
|
|
@@ -12891,11 +12913,11 @@ var TSEnumScope$1 = {};
|
|
|
12891
12913
|
|
|
12892
12914
|
Object.defineProperty(TSEnumScope$1, "__esModule", { value: true });
|
|
12893
12915
|
TSEnumScope$1.TSEnumScope = void 0;
|
|
12894
|
-
const ScopeBase_1$
|
|
12895
|
-
const ScopeType_1$
|
|
12896
|
-
class TSEnumScope extends ScopeBase_1$
|
|
12916
|
+
const ScopeBase_1$3 = ScopeBase$1;
|
|
12917
|
+
const ScopeType_1$3 = ScopeType$1;
|
|
12918
|
+
class TSEnumScope extends ScopeBase_1$3.ScopeBase {
|
|
12897
12919
|
constructor(scopeManager, upperScope, block) {
|
|
12898
|
-
super(scopeManager, ScopeType_1$
|
|
12920
|
+
super(scopeManager, ScopeType_1$3.ScopeType.tsEnum, upperScope, block, false);
|
|
12899
12921
|
}
|
|
12900
12922
|
}
|
|
12901
12923
|
TSEnumScope$1.TSEnumScope = TSEnumScope;
|
|
@@ -12904,11 +12926,11 @@ var TSModuleScope$1 = {};
|
|
|
12904
12926
|
|
|
12905
12927
|
Object.defineProperty(TSModuleScope$1, "__esModule", { value: true });
|
|
12906
12928
|
TSModuleScope$1.TSModuleScope = void 0;
|
|
12907
|
-
const ScopeBase_1$
|
|
12908
|
-
const ScopeType_1$
|
|
12909
|
-
class TSModuleScope extends ScopeBase_1$
|
|
12929
|
+
const ScopeBase_1$2 = ScopeBase$1;
|
|
12930
|
+
const ScopeType_1$2 = ScopeType$1;
|
|
12931
|
+
class TSModuleScope extends ScopeBase_1$2.ScopeBase {
|
|
12910
12932
|
constructor(scopeManager, upperScope, block) {
|
|
12911
|
-
super(scopeManager, ScopeType_1$
|
|
12933
|
+
super(scopeManager, ScopeType_1$2.ScopeType.tsModule, upperScope, block, false);
|
|
12912
12934
|
}
|
|
12913
12935
|
}
|
|
12914
12936
|
TSModuleScope$1.TSModuleScope = TSModuleScope;
|
|
@@ -12917,11 +12939,11 @@ var TypeScope$1 = {};
|
|
|
12917
12939
|
|
|
12918
12940
|
Object.defineProperty(TypeScope$1, "__esModule", { value: true });
|
|
12919
12941
|
TypeScope$1.TypeScope = void 0;
|
|
12920
|
-
const ScopeBase_1$
|
|
12921
|
-
const ScopeType_1$
|
|
12922
|
-
class TypeScope extends ScopeBase_1$
|
|
12942
|
+
const ScopeBase_1$1 = ScopeBase$1;
|
|
12943
|
+
const ScopeType_1$1 = ScopeType$1;
|
|
12944
|
+
class TypeScope extends ScopeBase_1$1.ScopeBase {
|
|
12923
12945
|
constructor(scopeManager, upperScope, block) {
|
|
12924
|
-
super(scopeManager, ScopeType_1$
|
|
12946
|
+
super(scopeManager, ScopeType_1$1.ScopeType.type, upperScope, block, false);
|
|
12925
12947
|
}
|
|
12926
12948
|
}
|
|
12927
12949
|
TypeScope$1.TypeScope = TypeScope;
|
|
@@ -12931,11 +12953,11 @@ var WithScope$1 = {};
|
|
|
12931
12953
|
Object.defineProperty(WithScope$1, "__esModule", { value: true });
|
|
12932
12954
|
WithScope$1.WithScope = void 0;
|
|
12933
12955
|
const assert_1$2 = assert$1;
|
|
12934
|
-
const ScopeBase_1
|
|
12935
|
-
const ScopeType_1
|
|
12936
|
-
class WithScope extends ScopeBase_1
|
|
12956
|
+
const ScopeBase_1 = ScopeBase$1;
|
|
12957
|
+
const ScopeType_1 = ScopeType$1;
|
|
12958
|
+
class WithScope extends ScopeBase_1.ScopeBase {
|
|
12937
12959
|
constructor(scopeManager, upperScope, block) {
|
|
12938
|
-
super(scopeManager, ScopeType_1
|
|
12960
|
+
super(scopeManager, ScopeType_1.ScopeType.with, upperScope, block, false);
|
|
12939
12961
|
}
|
|
12940
12962
|
close(scopeManager) {
|
|
12941
12963
|
if (this.shouldStaticallyClose()) {
|
|
@@ -12969,6 +12991,7 @@ WithScope$1.WithScope = WithScope;
|
|
|
12969
12991
|
__exportStar(CatchScope$1, exports);
|
|
12970
12992
|
__exportStar(ClassFieldInitializerScope$1, exports);
|
|
12971
12993
|
__exportStar(ClassScope$1, exports);
|
|
12994
|
+
__exportStar(ClassStaticBlockScope$1, exports);
|
|
12972
12995
|
__exportStar(ConditionalTypeScope$1, exports);
|
|
12973
12996
|
__exportStar(ForScope$1, exports);
|
|
12974
12997
|
__exportStar(FunctionExpressionNameScope$1, exports);
|
|
@@ -14251,19 +14274,6 @@ Referencer$1.Referencer = Referencer;
|
|
|
14251
14274
|
|
|
14252
14275
|
var ScopeManager$1 = {};
|
|
14253
14276
|
|
|
14254
|
-
var ClassStaticBlockScope$1 = {};
|
|
14255
|
-
|
|
14256
|
-
Object.defineProperty(ClassStaticBlockScope$1, "__esModule", { value: true });
|
|
14257
|
-
ClassStaticBlockScope$1.ClassStaticBlockScope = void 0;
|
|
14258
|
-
const ScopeBase_1 = ScopeBase$1;
|
|
14259
|
-
const ScopeType_1 = ScopeType$1;
|
|
14260
|
-
class ClassStaticBlockScope extends ScopeBase_1.ScopeBase {
|
|
14261
|
-
constructor(scopeManager, upperScope, block) {
|
|
14262
|
-
super(scopeManager, ScopeType_1.ScopeType.classStaticBlock, upperScope, block, false);
|
|
14263
|
-
}
|
|
14264
|
-
}
|
|
14265
|
-
ClassStaticBlockScope$1.ClassStaticBlockScope = ClassStaticBlockScope;
|
|
14266
|
-
|
|
14267
14277
|
Object.defineProperty(ScopeManager$1, "__esModule", { value: true });
|
|
14268
14278
|
ScopeManager$1.ScopeManager = void 0;
|
|
14269
14279
|
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.
|
|
3
|
+
"version": "0.555.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": {
|