@taiga-ui/eslint-plugin-experience-next 0.356.0 → 0.358.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/README.md +0 -1
- package/index.d.ts +0 -1
- package/index.esm.js +22 -30
- package/package.json +5 -5
- package/rules/no-private-esnext-fields.d.ts +0 -3
package/README.md
CHANGED
|
@@ -43,7 +43,6 @@ export default [
|
|
|
43
43
|
| injection-token-description | They are required to provide a description for `InjectionToken` | ✅ | | |
|
|
44
44
|
| no-deep-imports | Disables deep imports of Taiga UI packages | ✅ | 🔧 | |
|
|
45
45
|
| no-implicit-public | Prevents the use of the public modifier in classes | ✅ | 🔧 | |
|
|
46
|
-
| no-private-esnext-fields | Prevents the use of the ESNext private methods | ✅ | | |
|
|
47
46
|
| standalone-imports-sort | Sort imports alphabetically | ✅ | 🔧 | |
|
|
48
47
|
| prefer-deep-imports | Allow deep imports of Taiga UI packages | | 🔧 | |
|
|
49
48
|
| strict-tui-doc-example | If you use the addon-doc, there will be a hint that you are importing something incorrectly | | 🔧 | |
|
package/index.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ declare const plugin: {
|
|
|
24
24
|
'no-deep-imports-to-indexed-packages': import("@typescript-eslint/utils/ts-eslint").RuleModule<"deepImport", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
25
25
|
'no-href-with-router-link': import("eslint").Rule.RuleModule;
|
|
26
26
|
'no-implicit-public': import("@typescript-eslint/utils/ts-eslint").RuleModule<"implicitPublic", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
27
|
-
'no-private-esnext-fields': import("eslint").Rule.RuleModule;
|
|
28
27
|
'prefer-deep-imports': import("eslint").Rule.RuleModule;
|
|
29
28
|
'standalone-imports-sort': import("eslint").Rule.RuleModule;
|
|
30
29
|
'strict-tui-doc-example': import("@typescript-eslint/utils/ts-eslint").RuleModule<"strict-doc-example-extensions-invalid-key" | "strict-doc-example-extensions-invalid-value", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
package/index.esm.js
CHANGED
|
@@ -436,7 +436,6 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
|
436
436
|
],
|
|
437
437
|
'@taiga-ui/experience-next/no-deep-imports-to-indexed-packages': 'error',
|
|
438
438
|
'@taiga-ui/experience-next/no-implicit-public': 'error',
|
|
439
|
-
'@taiga-ui/experience-next/no-private-esnext-fields': 'error',
|
|
440
439
|
'@taiga-ui/experience-next/standalone-imports-sort': [
|
|
441
440
|
'error',
|
|
442
441
|
{
|
|
@@ -752,6 +751,14 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
|
752
751
|
'no-empty': ['error', { allowEmptyCatch: true }],
|
|
753
752
|
'no-extra-boolean-cast': 'error',
|
|
754
753
|
'no-implicit-coercion': ['error', { allow: ['!!'] }],
|
|
754
|
+
'no-irregular-whitespace': [
|
|
755
|
+
'error',
|
|
756
|
+
{
|
|
757
|
+
skipRegExps: false,
|
|
758
|
+
skipStrings: false,
|
|
759
|
+
skipTemplates: false,
|
|
760
|
+
},
|
|
761
|
+
],
|
|
755
762
|
'no-loop-func': 'error',
|
|
756
763
|
'no-nested-ternary': 'error',
|
|
757
764
|
'no-prototype-builtins': 'off',
|
|
@@ -1118,6 +1125,11 @@ var recommended = tseslint.config(progress.configs['recommended-ci'], {
|
|
|
1118
1125
|
'package-json/require-description': ['error', { ignorePrivate: true }],
|
|
1119
1126
|
'package-json/require-type': ['off', { ignorePrivate: true }],
|
|
1120
1127
|
},
|
|
1128
|
+
}, {
|
|
1129
|
+
files: ['**/*.html', '**/*.cy.ts', '**/*.spec.ts'],
|
|
1130
|
+
rules: {
|
|
1131
|
+
'no-irregular-whitespace': 'off',
|
|
1132
|
+
},
|
|
1121
1133
|
});
|
|
1122
1134
|
function projectJsonExist(filename) {
|
|
1123
1135
|
try {
|
|
@@ -1203,7 +1215,7 @@ function readJSON(path) {
|
|
|
1203
1215
|
}
|
|
1204
1216
|
}
|
|
1205
1217
|
|
|
1206
|
-
const config$
|
|
1218
|
+
const config$4 = {
|
|
1207
1219
|
create(context) {
|
|
1208
1220
|
const classesInFile = new Map();
|
|
1209
1221
|
return {
|
|
@@ -1365,7 +1377,7 @@ var classPropertyNaming = createRule$5({
|
|
|
1365
1377
|
name: 'class-property-naming',
|
|
1366
1378
|
});
|
|
1367
1379
|
|
|
1368
|
-
const config$
|
|
1380
|
+
const config$3 = {
|
|
1369
1381
|
create(context) {
|
|
1370
1382
|
const order = context.options[0] || {};
|
|
1371
1383
|
return {
|
|
@@ -1630,7 +1642,7 @@ var noDeepImportsToIndexedPackages = createRule$2({
|
|
|
1630
1642
|
|
|
1631
1643
|
const MESSAGE_ID$1 = 'no-href-with-router-link';
|
|
1632
1644
|
const ERROR_MESSAGE$1 = 'Do not use href and routerLink attributes together on the same element';
|
|
1633
|
-
const config$
|
|
1645
|
+
const config$2 = {
|
|
1634
1646
|
create(context) {
|
|
1635
1647
|
return {
|
|
1636
1648
|
Tag(node) {
|
|
@@ -1687,6 +1699,9 @@ const rule$1 = createRule$1({
|
|
|
1687
1699
|
if (!classRef || node.kind === 'constructor' || !!node?.accessibility) {
|
|
1688
1700
|
return;
|
|
1689
1701
|
}
|
|
1702
|
+
if (node.key?.type === AST_NODE_TYPES.PrivateIdentifier) {
|
|
1703
|
+
return;
|
|
1704
|
+
}
|
|
1690
1705
|
const name = node?.key?.name ||
|
|
1691
1706
|
node?.parameter?.name ||
|
|
1692
1707
|
(node?.key?.type === 'Identifier' ? node.key.name : 'member');
|
|
@@ -1751,28 +1766,6 @@ function getClass(node) {
|
|
|
1751
1766
|
return getClass(node.parent);
|
|
1752
1767
|
}
|
|
1753
1768
|
|
|
1754
|
-
const config$2 = {
|
|
1755
|
-
create(context) {
|
|
1756
|
-
return {
|
|
1757
|
-
ClassDeclaration: function reportUnwantedName(node) {
|
|
1758
|
-
const members = Array.from(node.body.body);
|
|
1759
|
-
members.forEach((member) => {
|
|
1760
|
-
if (member?.key?.type === 'PrivateIdentifier') {
|
|
1761
|
-
context.report({
|
|
1762
|
-
message: `Please don't use "#${member?.key?.name}" instead of "private ${member?.key?.name}"`,
|
|
1763
|
-
node,
|
|
1764
|
-
});
|
|
1765
|
-
}
|
|
1766
|
-
});
|
|
1767
|
-
},
|
|
1768
|
-
};
|
|
1769
|
-
},
|
|
1770
|
-
meta: {
|
|
1771
|
-
fixable: 'code',
|
|
1772
|
-
type: 'problem',
|
|
1773
|
-
},
|
|
1774
|
-
};
|
|
1775
|
-
|
|
1776
1769
|
const MESSAGE_ID = 'prefer-deep-imports';
|
|
1777
1770
|
const ERROR_MESSAGE = 'Import via root level entry point are prohibited for this package';
|
|
1778
1771
|
const config$1 = {
|
|
@@ -2058,15 +2051,14 @@ const plugin = {
|
|
|
2058
2051
|
version: pkg.version,
|
|
2059
2052
|
},
|
|
2060
2053
|
rules: {
|
|
2061
|
-
'array-as-const': config$
|
|
2054
|
+
'array-as-const': config$4,
|
|
2062
2055
|
'class-property-naming': classPropertyNaming,
|
|
2063
|
-
'decorator-key-sort': config$
|
|
2056
|
+
'decorator-key-sort': config$3,
|
|
2064
2057
|
'injection-token-description': rule$3,
|
|
2065
2058
|
'no-deep-imports': rule$2,
|
|
2066
2059
|
'no-deep-imports-to-indexed-packages': noDeepImportsToIndexedPackages,
|
|
2067
|
-
'no-href-with-router-link': config$
|
|
2060
|
+
'no-href-with-router-link': config$2,
|
|
2068
2061
|
'no-implicit-public': rule$1,
|
|
2069
|
-
'no-private-esnext-fields': config$2,
|
|
2070
2062
|
'prefer-deep-imports': config$1,
|
|
2071
2063
|
'standalone-imports-sort': config,
|
|
2072
2064
|
'strict-tui-doc-example': rule,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/eslint-plugin-experience-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.358.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
|
"type": "module",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@typescript-eslint/rule-tester": "8.46.
|
|
8
|
+
"@typescript-eslint/rule-tester": "8.46.4",
|
|
9
9
|
"glob": "11.0.3"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"eslint-plugin-decorator-position": "^6.0.0",
|
|
24
24
|
"eslint-plugin-file-progress": "^3.0.2",
|
|
25
25
|
"eslint-plugin-import": "^2.32.0",
|
|
26
|
-
"eslint-plugin-jest": "^29.0
|
|
27
|
-
"eslint-plugin-package-json": "^0.65.
|
|
26
|
+
"eslint-plugin-jest": "^29.1.0",
|
|
27
|
+
"eslint-plugin-package-json": "^0.65.3",
|
|
28
28
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
29
29
|
"eslint-plugin-playwright": "^2.3.0",
|
|
30
30
|
"eslint-plugin-prettier": "^5.5.4",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
36
36
|
"glob": "*",
|
|
37
37
|
"globals": "^16.5.0",
|
|
38
|
-
"typescript-eslint": "^8.46.
|
|
38
|
+
"typescript-eslint": "^8.46.4"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|