@taiga-ui/eslint-plugin-experience-next 0.300.0 → 0.301.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 +19 -11
- package/package.json +5 -5
package/index.esm.js
CHANGED
|
@@ -765,6 +765,17 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
|
|
|
765
765
|
'@typescript-eslint/require-await': 'error',
|
|
766
766
|
'@typescript-eslint/restrict-plus-operands': 'error',
|
|
767
767
|
'@typescript-eslint/sort-type-constituents': 'error',
|
|
768
|
+
'@typescript-eslint/strict-boolean-expressions': ['error', {
|
|
769
|
+
allowAny: true,
|
|
770
|
+
allowNullableBoolean: true,
|
|
771
|
+
allowNullableEnum: false,
|
|
772
|
+
allowNullableNumber: true,
|
|
773
|
+
allowNullableObject: true,
|
|
774
|
+
allowNullableString: true,
|
|
775
|
+
allowNumber: true,
|
|
776
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
777
|
+
allowString: true
|
|
778
|
+
}],
|
|
768
779
|
'@typescript-eslint/switch-exhaustiveness-check': ['error', {
|
|
769
780
|
considerDefaultExhaustiveForUnions: true,
|
|
770
781
|
allowDefaultCaseForExhaustiveSwitch: true,
|
|
@@ -830,6 +841,7 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
|
|
|
830
841
|
'no-empty': ['error', {
|
|
831
842
|
allowEmptyCatch: true
|
|
832
843
|
}],
|
|
844
|
+
'no-extra-boolean-cast': 'error',
|
|
833
845
|
'no-implicit-coercion': ['error', {
|
|
834
846
|
allow: ['!!']
|
|
835
847
|
}],
|
|
@@ -906,6 +918,7 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
|
|
|
906
918
|
selector: "CallExpression[callee.name='inject'][arguments.0.name='Injector']"
|
|
907
919
|
}],
|
|
908
920
|
'no-return-assign': ['error', 'always'],
|
|
921
|
+
'no-unneeded-ternary': 'error',
|
|
909
922
|
'no-useless-concat': 'error',
|
|
910
923
|
'no-useless-escape': 'error',
|
|
911
924
|
'no-useless-rename': ['error', {
|
|
@@ -969,6 +982,7 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
|
|
|
969
982
|
case: 'kebabCase'
|
|
970
983
|
}],
|
|
971
984
|
'unicorn/new-for-builtins': 'error',
|
|
985
|
+
'unicorn/no-array-method-this-argument': 'error',
|
|
972
986
|
'unicorn/no-array-push-push': 'error',
|
|
973
987
|
'unicorn/no-await-in-promise-methods': 'error',
|
|
974
988
|
'unicorn/no-empty-file': 'error',
|
|
@@ -1026,7 +1040,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
|
|
|
1026
1040
|
'@typescript-eslint/no-misused-promises': 'off',
|
|
1027
1041
|
'@typescript-eslint/no-mixed-enums': 'off',
|
|
1028
1042
|
'@typescript-eslint/no-redundant-type-constituents': 'off',
|
|
1029
|
-
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
|
|
1030
1043
|
'@typescript-eslint/no-unnecessary-qualifier': 'off',
|
|
1031
1044
|
'@typescript-eslint/no-unnecessary-template-expression': 'off',
|
|
1032
1045
|
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
|
|
@@ -1044,7 +1057,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
|
|
|
1044
1057
|
'@typescript-eslint/prefer-destructuring': 'off',
|
|
1045
1058
|
'@typescript-eslint/prefer-find': 'off',
|
|
1046
1059
|
'@typescript-eslint/prefer-includes': 'off',
|
|
1047
|
-
'@typescript-eslint/prefer-optional-chain': 'off',
|
|
1048
1060
|
'@typescript-eslint/prefer-promise-reject-errors': 'off',
|
|
1049
1061
|
'@typescript-eslint/prefer-readonly': 'off',
|
|
1050
1062
|
'@typescript-eslint/prefer-reduce-type-parameter': 'off',
|
|
@@ -1178,7 +1190,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
|
|
|
1178
1190
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
1179
1191
|
'@typescript-eslint/no-require-imports': 'off',
|
|
1180
1192
|
'@typescript-eslint/no-shadow': 'off',
|
|
1181
|
-
'@typescript-eslint/no-unnecessary-condition': 'off',
|
|
1182
1193
|
'@typescript-eslint/no-unnecessary-template-expression': 'off',
|
|
1183
1194
|
'@typescript-eslint/no-unnecessary-type-parameters': 'off',
|
|
1184
1195
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
@@ -1192,7 +1203,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], require('e
|
|
|
1192
1203
|
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
1193
1204
|
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
|
|
1194
1205
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
1195
|
-
'@typescript-eslint/strict-boolean-expressions': 'off',
|
|
1196
1206
|
'@typescript-eslint/unbound-method': 'off',
|
|
1197
1207
|
camelcase: 'off',
|
|
1198
1208
|
'class-methods-use-this': 'off',
|
|
@@ -1470,7 +1480,7 @@ const config$8 = {
|
|
|
1470
1480
|
const classesInFile = new Map();
|
|
1471
1481
|
return {
|
|
1472
1482
|
ClassDeclaration(node) {
|
|
1473
|
-
if (node.id
|
|
1483
|
+
if (node.id.name) {
|
|
1474
1484
|
classesInFile.set(node.id.name, true);
|
|
1475
1485
|
}
|
|
1476
1486
|
},
|
|
@@ -1498,9 +1508,7 @@ const config$8 = {
|
|
|
1498
1508
|
},
|
|
1499
1509
|
ImportDeclaration(node) {
|
|
1500
1510
|
for (const specifier of node.specifiers) {
|
|
1501
|
-
|
|
1502
|
-
classesInFile.set(specifier.local.name, true);
|
|
1503
|
-
}
|
|
1511
|
+
classesInFile.set(specifier.local.name, true);
|
|
1504
1512
|
}
|
|
1505
1513
|
}
|
|
1506
1514
|
};
|
|
@@ -1534,7 +1542,7 @@ const config$7 = {
|
|
|
1534
1542
|
const decoratorArguments = Array.from(expression.arguments ?? []);
|
|
1535
1543
|
for (const argument of decoratorArguments) {
|
|
1536
1544
|
const properties = Array.from(argument.properties ?? []);
|
|
1537
|
-
const current = properties.map(prop => prop.key?.name).filter(Boolean)
|
|
1545
|
+
const current = properties.map(prop => prop.key?.name).filter(Boolean);
|
|
1538
1546
|
const correct = getCorrectOrderRelative(orderList, current);
|
|
1539
1547
|
if (!isCorrectSortedAccording(correct, current)) {
|
|
1540
1548
|
context.report({
|
|
@@ -1753,7 +1761,7 @@ const config$3 = {
|
|
|
1753
1761
|
create(context) {
|
|
1754
1762
|
return {
|
|
1755
1763
|
ClassDeclaration: function reportUnwantedName(node) {
|
|
1756
|
-
const members = Array.from(node
|
|
1764
|
+
const members = Array.from(node.body.body);
|
|
1757
1765
|
members.forEach(member => {
|
|
1758
1766
|
if (member?.key?.type === 'PrivateIdentifier') {
|
|
1759
1767
|
context.report({
|
|
@@ -1840,7 +1848,7 @@ const config$2 = {
|
|
|
1840
1848
|
}
|
|
1841
1849
|
};
|
|
1842
1850
|
function findNearestEntryPoint(filePath) {
|
|
1843
|
-
const pathSegments = (filePath ?? '')
|
|
1851
|
+
const pathSegments = (filePath ?? '').split('/');
|
|
1844
1852
|
for (let i = pathSegments.length - 1; i >= 0; i--) {
|
|
1845
1853
|
const possibleEntryPoint = pathSegments.slice(0, i).join('/');
|
|
1846
1854
|
if (fs.existsSync(`${possibleEntryPoint}/ng-package.json`)) {
|
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.301.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,21 +9,21 @@
|
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"@eslint/compat": ">=1.3.1",
|
|
12
|
-
"@html-eslint/eslint-plugin": ">=0.
|
|
13
|
-
"@html-eslint/parser": ">=0.
|
|
12
|
+
"@html-eslint/eslint-plugin": ">=0.44.0",
|
|
13
|
+
"@html-eslint/parser": ">=0.44.0",
|
|
14
14
|
"@smarttools/eslint-plugin-rxjs": ">=1.0.22",
|
|
15
15
|
"@stylistic/eslint-plugin": ">=5.2.2",
|
|
16
16
|
"@types/glob": "*",
|
|
17
17
|
"angular-eslint": ">=20.1.1",
|
|
18
18
|
"eslint": ">=9.32.0",
|
|
19
19
|
"eslint-config-prettier": ">=10.1.7",
|
|
20
|
-
"eslint-plugin-de-morgan": ">=1.3.
|
|
20
|
+
"eslint-plugin-de-morgan": ">=1.3.1",
|
|
21
21
|
"eslint-plugin-decorator-position": ">=6.0.0",
|
|
22
22
|
"eslint-plugin-file-progress": ">=3.0.2",
|
|
23
23
|
"eslint-plugin-import": ">=2.32.0",
|
|
24
24
|
"eslint-plugin-jest": ">=29.0.1",
|
|
25
25
|
"eslint-plugin-perfectionist": ">=4.15.0",
|
|
26
|
-
"eslint-plugin-playwright": ">=2.2.
|
|
26
|
+
"eslint-plugin-playwright": ">=2.2.2",
|
|
27
27
|
"eslint-plugin-prettier": ">=5.5.3",
|
|
28
28
|
"eslint-plugin-promise": ">=7.2.1",
|
|
29
29
|
"eslint-plugin-simple-import-sort": ">=12.1.1",
|