@taiga-ui/eslint-plugin-experience-next 0.428.0 → 0.429.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 +37 -5
- package/package.json +1 -1
- package/rules/convention.d.ts +22 -2
package/index.esm.js
CHANGED
|
@@ -119,7 +119,7 @@ const TUI_RECOMMENDED_NAMING_CONVENTION = [
|
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
format: ['camelCase'],
|
|
122
|
-
selector: ['classMethod', '
|
|
122
|
+
selector: ['classMethod', 'classProperty'],
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
format: ['UPPER_CASE', 'camelCase', 'PascalCase'],
|
|
@@ -130,6 +130,18 @@ const TUI_RECOMMENDED_NAMING_CONVENTION = [
|
|
|
130
130
|
format: null,
|
|
131
131
|
selector: 'variable',
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
custom: {
|
|
135
|
+
match: true,
|
|
136
|
+
regex: String.raw `^[\x00-\x7F]+$`,
|
|
137
|
+
},
|
|
138
|
+
format: null,
|
|
139
|
+
selector: 'parameter',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
format: ['camelCase'],
|
|
143
|
+
selector: 'function',
|
|
144
|
+
},
|
|
133
145
|
];
|
|
134
146
|
const TUI_CUSTOM_TAIGA_NAMING_CONVENTION = [
|
|
135
147
|
...TUI_RECOMMENDED_NAMING_CONVENTION,
|
|
@@ -383,10 +395,6 @@ var recommended = defineConfig([
|
|
|
383
395
|
{ default: TUI_MEMBER_ORDERING_CONVENTION },
|
|
384
396
|
],
|
|
385
397
|
'@typescript-eslint/method-signature-style': ['error', 'method'],
|
|
386
|
-
'@typescript-eslint/naming-convention': [
|
|
387
|
-
'error',
|
|
388
|
-
...TUI_RECOMMENDED_NAMING_CONVENTION,
|
|
389
|
-
],
|
|
390
398
|
'@typescript-eslint/no-base-to-string': 'off',
|
|
391
399
|
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
|
392
400
|
'@typescript-eslint/no-confusing-void-expression': 'off',
|
|
@@ -1049,6 +1057,28 @@ var recommended = defineConfig([
|
|
|
1049
1057
|
'jest/valid-title': 'error',
|
|
1050
1058
|
},
|
|
1051
1059
|
},
|
|
1060
|
+
{
|
|
1061
|
+
files: ['**/*.ts'],
|
|
1062
|
+
rules: {
|
|
1063
|
+
'@typescript-eslint/naming-convention': [
|
|
1064
|
+
'error',
|
|
1065
|
+
...TUI_RECOMMENDED_NAMING_CONVENTION,
|
|
1066
|
+
],
|
|
1067
|
+
},
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
files: ['**/*.tsx'],
|
|
1071
|
+
rules: {
|
|
1072
|
+
'@typescript-eslint/naming-convention': [
|
|
1073
|
+
'error',
|
|
1074
|
+
...TUI_RECOMMENDED_NAMING_CONVENTION.filter(({ selector }) => selector !== 'function'),
|
|
1075
|
+
{
|
|
1076
|
+
format: ['camelCase', 'PascalCase'],
|
|
1077
|
+
selector: 'function',
|
|
1078
|
+
},
|
|
1079
|
+
],
|
|
1080
|
+
},
|
|
1081
|
+
},
|
|
1052
1082
|
{
|
|
1053
1083
|
files: ['**/*.cy.ts'],
|
|
1054
1084
|
rules: {
|
|
@@ -2784,6 +2814,8 @@ const DEFAULT_EXCEPTIONS = [
|
|
|
2784
2814
|
{ from: 'TuiTextfieldOptionsDirective', to: 'TuiTextfield' },
|
|
2785
2815
|
{ from: 'TuiPreviewDialogDirective', to: 'TuiPreview' },
|
|
2786
2816
|
{ from: 'TuiAccountComponent', to: 'TuiAccountComponent' },
|
|
2817
|
+
{ from: 'TuiIslandDirective', to: 'TuiIsland' },
|
|
2818
|
+
{ from: 'TuiTableBarsHostComponent', to: 'TuiTableBarsHost' },
|
|
2787
2819
|
];
|
|
2788
2820
|
const createRule$2 = ESLintUtils.RuleCreator((name) => name);
|
|
2789
2821
|
const rule$1 = createRule$2({
|
package/package.json
CHANGED
package/rules/convention.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const TUI_RECOMMENDED_NAMING_CONVENTION: readonly [{
|
|
|
3
3
|
readonly selector: readonly ["class", "interface", "typeAlias", "typeLike", "enum", "enumMember"];
|
|
4
4
|
}, {
|
|
5
5
|
readonly format: readonly ["camelCase"];
|
|
6
|
-
readonly selector: readonly ["classMethod", "
|
|
6
|
+
readonly selector: readonly ["classMethod", "classProperty"];
|
|
7
7
|
}, {
|
|
8
8
|
readonly format: readonly ["UPPER_CASE", "camelCase", "PascalCase"];
|
|
9
9
|
readonly selector: readonly ["variable"];
|
|
@@ -11,13 +11,23 @@ export declare const TUI_RECOMMENDED_NAMING_CONVENTION: readonly [{
|
|
|
11
11
|
readonly filter: "__non_webpack_require__";
|
|
12
12
|
readonly format: null;
|
|
13
13
|
readonly selector: "variable";
|
|
14
|
+
}, {
|
|
15
|
+
readonly custom: {
|
|
16
|
+
readonly match: true;
|
|
17
|
+
readonly regex: string;
|
|
18
|
+
};
|
|
19
|
+
readonly format: null;
|
|
20
|
+
readonly selector: "parameter";
|
|
21
|
+
}, {
|
|
22
|
+
readonly format: readonly ["camelCase"];
|
|
23
|
+
readonly selector: "function";
|
|
14
24
|
}];
|
|
15
25
|
export declare const TUI_CUSTOM_TAIGA_NAMING_CONVENTION: readonly [{
|
|
16
26
|
readonly format: readonly ["PascalCase"];
|
|
17
27
|
readonly selector: readonly ["class", "interface", "typeAlias", "typeLike", "enum", "enumMember"];
|
|
18
28
|
}, {
|
|
19
29
|
readonly format: readonly ["camelCase"];
|
|
20
|
-
readonly selector: readonly ["classMethod", "
|
|
30
|
+
readonly selector: readonly ["classMethod", "classProperty"];
|
|
21
31
|
}, {
|
|
22
32
|
readonly format: readonly ["UPPER_CASE", "camelCase", "PascalCase"];
|
|
23
33
|
readonly selector: readonly ["variable"];
|
|
@@ -25,6 +35,16 @@ export declare const TUI_CUSTOM_TAIGA_NAMING_CONVENTION: readonly [{
|
|
|
25
35
|
readonly filter: "__non_webpack_require__";
|
|
26
36
|
readonly format: null;
|
|
27
37
|
readonly selector: "variable";
|
|
38
|
+
}, {
|
|
39
|
+
readonly custom: {
|
|
40
|
+
readonly match: true;
|
|
41
|
+
readonly regex: string;
|
|
42
|
+
};
|
|
43
|
+
readonly format: null;
|
|
44
|
+
readonly selector: "parameter";
|
|
45
|
+
}, {
|
|
46
|
+
readonly format: readonly ["camelCase"];
|
|
47
|
+
readonly selector: "function";
|
|
28
48
|
}, {
|
|
29
49
|
readonly format: readonly ["PascalCase"];
|
|
30
50
|
readonly modifiers: readonly ["exported"];
|