@taiga-ui/eslint-plugin-experience-next 0.382.0 → 0.383.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.d.ts +30 -10
- package/index.esm.js +5 -6
- package/package.json +1 -1
- package/rules/class-property-naming.d.ts +3 -1
- package/rules/flat-exports.d.ts +3 -1
- package/rules/injection-token-description.d.ts +3 -1
- package/rules/no-deep-imports-to-indexed-packages.d.ts +3 -1
- package/rules/no-deep-imports.d.ts +3 -1
- package/rules/no-implicit-public.d.ts +3 -1
- package/rules/prefer-deep-imports.d.ts +3 -1
- package/rules/short-tui-imports.d.ts +3 -1
- package/rules/standalone-imports-sort.d.ts +3 -1
- package/rules/strict-tui-doc-example.d.ts +3 -1
package/index.d.ts
CHANGED
|
@@ -11,29 +11,49 @@ declare const plugin: {
|
|
|
11
11
|
};
|
|
12
12
|
rules: {
|
|
13
13
|
'array-as-const': import("eslint").Rule.RuleModule;
|
|
14
|
-
'class-property-naming': import("@typescript-eslint/utils/ts-eslint").RuleModule<"invalidName", [import("./rules/class-property-naming").RuleConfig[]], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
14
|
+
'class-property-naming': import("@typescript-eslint/utils/ts-eslint").RuleModule<"invalidName", [import("./rules/class-property-naming").RuleConfig[]], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
15
17
|
'decorator-key-sort': import("eslint").Rule.RuleModule;
|
|
16
|
-
'flat-exports': import("@typescript-eslint/utils/ts-eslint").RuleModule<"spreadArrays", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
17
|
-
|
|
18
|
+
'flat-exports': import("@typescript-eslint/utils/ts-eslint").RuleModule<"spreadArrays", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
'injection-token-description': import("@typescript-eslint/utils/ts-eslint").RuleModule<"invalid-injection-token-description", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
18
24
|
'no-deep-imports': import("@typescript-eslint/utils/ts-eslint").RuleModule<"no-deep-imports", [{
|
|
19
25
|
currentProject: string;
|
|
20
26
|
deepImport: string;
|
|
21
27
|
ignoreImports: string[];
|
|
22
28
|
importDeclaration: string;
|
|
23
29
|
projectName: string;
|
|
24
|
-
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
25
|
-
|
|
30
|
+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
'no-deep-imports-to-indexed-packages': import("@typescript-eslint/utils/ts-eslint").RuleModule<"deepImport", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
26
36
|
'no-href-with-router-link': import("eslint").Rule.RuleModule;
|
|
27
|
-
'no-implicit-public': import("@typescript-eslint/utils/ts-eslint").RuleModule<"implicitPublic", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
37
|
+
'no-implicit-public': import("@typescript-eslint/utils/ts-eslint").RuleModule<"implicitPublic", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
28
40
|
'prefer-deep-imports': import("@typescript-eslint/utils/ts-eslint").RuleModule<"prefer-deep-imports", [{
|
|
29
41
|
importFilter: string[] | string;
|
|
30
42
|
strict?: boolean;
|
|
31
|
-
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
32
|
-
|
|
43
|
+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
44
|
+
name: string;
|
|
45
|
+
};
|
|
46
|
+
'short-tui-imports': import("@typescript-eslint/utils/ts-eslint").RuleModule<"replaceTuiImport", import("./rules/short-tui-imports").Options, unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
47
|
+
name: string;
|
|
48
|
+
};
|
|
33
49
|
'standalone-imports-sort': import("@typescript-eslint/utils/ts-eslint").RuleModule<"incorrectOrder", [{
|
|
34
50
|
decorators?: string[];
|
|
35
|
-
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
36
|
-
|
|
51
|
+
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
'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> & {
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
37
57
|
};
|
|
38
58
|
};
|
|
39
59
|
export { TUI_RECOMMENDED_NAMING_CONVENTION } from './rules/convention';
|
package/index.esm.js
CHANGED
|
@@ -1435,7 +1435,7 @@ function isArray(node) {
|
|
|
1435
1435
|
}
|
|
1436
1436
|
|
|
1437
1437
|
function getConstArray(node) {
|
|
1438
|
-
if (
|
|
1438
|
+
if (node?.type !== AST_NODE_TYPES$1.TSAsExpression) {
|
|
1439
1439
|
return null;
|
|
1440
1440
|
}
|
|
1441
1441
|
const annotation = node.typeAnnotation;
|
|
@@ -1522,8 +1522,7 @@ var flatExports = createRule$8({
|
|
|
1522
1522
|
return;
|
|
1523
1523
|
}
|
|
1524
1524
|
const elementNode = arr.node.elements[index];
|
|
1525
|
-
if (
|
|
1526
|
-
elementNode.type !== AST_NODE_TYPES.Identifier) {
|
|
1525
|
+
if (elementNode?.type !== AST_NODE_TYPES.Identifier) {
|
|
1527
1526
|
return;
|
|
1528
1527
|
}
|
|
1529
1528
|
const hasLocalArrayMeta = arrays.has(meta.name);
|
|
@@ -1556,7 +1555,7 @@ var flatExports = createRule$8({
|
|
|
1556
1555
|
const elements = [];
|
|
1557
1556
|
let isDirty = false;
|
|
1558
1557
|
for (const el of arrayExpression.elements) {
|
|
1559
|
-
if (
|
|
1558
|
+
if (el?.type !== AST_NODE_TYPES.Identifier) {
|
|
1560
1559
|
isDirty = true;
|
|
1561
1560
|
continue;
|
|
1562
1561
|
}
|
|
@@ -1806,7 +1805,7 @@ const config = {
|
|
|
1806
1805
|
return {
|
|
1807
1806
|
Tag(node) {
|
|
1808
1807
|
const htmlNode = node;
|
|
1809
|
-
if (
|
|
1808
|
+
if (htmlNode?.name?.toLowerCase() !== 'a') {
|
|
1810
1809
|
return;
|
|
1811
1810
|
}
|
|
1812
1811
|
let hrefAttribute = null;
|
|
@@ -2311,7 +2310,7 @@ const rule$1 = createRule$2({
|
|
|
2311
2310
|
return;
|
|
2312
2311
|
}
|
|
2313
2312
|
const [arg] = expression.arguments;
|
|
2314
|
-
const isNotObject =
|
|
2313
|
+
const isNotObject = arg?.type !== AST_NODE_TYPES.ObjectExpression;
|
|
2315
2314
|
if (isNotObject) {
|
|
2316
2315
|
return;
|
|
2317
2316
|
}
|
package/package.json
CHANGED
|
@@ -4,5 +4,7 @@ export interface RuleConfig {
|
|
|
4
4
|
newFieldName: string;
|
|
5
5
|
withTypesSpecifier: string[];
|
|
6
6
|
}
|
|
7
|
-
declare const _default: ESLintUtils.RuleModule<"invalidName", [RuleConfig[]], unknown, ESLintUtils.RuleListener
|
|
7
|
+
declare const _default: ESLintUtils.RuleModule<"invalidName", [RuleConfig[]], unknown, ESLintUtils.RuleListener> & {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
8
10
|
export default _default;
|
package/rules/flat-exports.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
-
declare const _default: ESLintUtils.RuleModule<"spreadArrays", [], unknown, ESLintUtils.RuleListener
|
|
2
|
+
declare const _default: ESLintUtils.RuleModule<"spreadArrays", [], unknown, ESLintUtils.RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
-
export declare const rule: ESLintUtils.RuleModule<"invalid-injection-token-description", [], unknown, ESLintUtils.RuleListener
|
|
2
|
+
export declare const rule: ESLintUtils.RuleModule<"invalid-injection-token-description", [], unknown, ESLintUtils.RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default rule;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
-
declare const _default: ESLintUtils.RuleModule<"deepImport", [], unknown, ESLintUtils.RuleListener
|
|
2
|
+
declare const _default: ESLintUtils.RuleModule<"deepImport", [], unknown, ESLintUtils.RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|
|
@@ -5,5 +5,7 @@ export declare const rule: ESLintUtils.RuleModule<"no-deep-imports", [{
|
|
|
5
5
|
ignoreImports: string[];
|
|
6
6
|
importDeclaration: string;
|
|
7
7
|
projectName: string;
|
|
8
|
-
}], unknown, ESLintUtils.RuleListener
|
|
8
|
+
}], unknown, ESLintUtils.RuleListener> & {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
9
11
|
export default rule;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
-
export declare const rule: ESLintUtils.RuleModule<"implicitPublic", [], unknown, ESLintUtils.RuleListener
|
|
2
|
+
export declare const rule: ESLintUtils.RuleModule<"implicitPublic", [], unknown, ESLintUtils.RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default rule;
|
|
@@ -18,5 +18,7 @@ type RuleOptions = [
|
|
|
18
18
|
strict?: boolean;
|
|
19
19
|
}
|
|
20
20
|
];
|
|
21
|
-
declare const _default: ESLintUtils.RuleModule<"prefer-deep-imports", RuleOptions, unknown, ESLintUtils.RuleListener
|
|
21
|
+
declare const _default: ESLintUtils.RuleModule<"prefer-deep-imports", RuleOptions, unknown, ESLintUtils.RuleListener> & {
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
22
24
|
export default _default;
|
|
@@ -11,5 +11,7 @@ export type Options = [
|
|
|
11
11
|
];
|
|
12
12
|
export type MessageIds = 'replaceTuiImport';
|
|
13
13
|
export declare const MESSAGE_ID: MessageIds;
|
|
14
|
-
export declare const rule: ESLintUtils.RuleModule<"replaceTuiImport", Options, unknown, ESLintUtils.RuleListener
|
|
14
|
+
export declare const rule: ESLintUtils.RuleModule<"replaceTuiImport", Options, unknown, ESLintUtils.RuleListener> & {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
15
17
|
export default rule;
|
|
@@ -2,5 +2,7 @@ import { ESLintUtils } from '@typescript-eslint/utils';
|
|
|
2
2
|
type Options = [{
|
|
3
3
|
decorators?: string[];
|
|
4
4
|
}];
|
|
5
|
-
declare const _default: ESLintUtils.RuleModule<"incorrectOrder", Options, unknown, ESLintUtils.RuleListener
|
|
5
|
+
declare const _default: ESLintUtils.RuleModule<"incorrectOrder", Options, unknown, ESLintUtils.RuleListener> & {
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
6
8
|
export default _default;
|
|
@@ -2,5 +2,7 @@ import { ESLintUtils } from '@typescript-eslint/utils';
|
|
|
2
2
|
declare const INVALID_KEY_MESSAGE_ID: "strict-doc-example-extensions-invalid-key";
|
|
3
3
|
declare const INVALID_VALUE_MESSAGE_ID: "strict-doc-example-extensions-invalid-value";
|
|
4
4
|
type MessageIds = typeof INVALID_KEY_MESSAGE_ID | typeof INVALID_VALUE_MESSAGE_ID;
|
|
5
|
-
export declare const rule: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener
|
|
5
|
+
export declare const rule: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener> & {
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
6
8
|
export default rule;
|