@taiga-ui/eslint-plugin-experience-next 0.549.0 → 0.550.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/eslint-plugin-experience-next",
3
- "version": "0.549.0",
3
+ "version": "0.550.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": {
@@ -34,7 +34,7 @@
34
34
  "@eslint/markdown": "8.0.2",
35
35
  "@smarttools/eslint-plugin-rxjs": "1.0.22",
36
36
  "@stylistic/eslint-plugin": "5.10.0",
37
- "angular-eslint": "21.4.0",
37
+ "angular-eslint": "22.0.0",
38
38
  "eslint-config-prettier": "10.1.8",
39
39
  "eslint-plugin-compat": "7.0.2",
40
40
  "eslint-plugin-cypress": "6.4.1",
@@ -1,5 +1,5 @@
1
- import { ESLintUtils } from '@typescript-eslint/utils';
2
- export declare const rule: ESLintUtils.RuleModule<"preferConditionalReturn", [], unknown, ESLintUtils.RuleListener> & {
1
+ import { type TSESLint } from '@typescript-eslint/utils';
2
+ export declare const rule: TSESLint.RuleModule<"preferConditionalReturn", [], unknown, TSESLint.RuleListener> & {
3
3
  name: string;
4
4
  };
5
5
  export default rule;
@@ -3,4 +3,6 @@ import type ts from 'typescript';
3
3
  export interface NodeMap {
4
4
  get(node: TSESTree.Node): ts.Node | undefined;
5
5
  }
6
- export type TsNodeToESTreeNodeMap = Map<ts.Node, TSESTree.Node>;
6
+ export interface TsNodeToESTreeNodeMap {
7
+ get(node: ts.Node): TSESTree.Node | undefined;
8
+ }
@@ -1,13 +1,14 @@
1
1
  import { ESLintUtils, type TSESLint, type TSESTree } from '@typescript-eslint/utils';
2
2
  import type ts from 'typescript';
3
+ import { type NodeMap, type TsNodeToESTreeNodeMap } from './node-map';
3
4
  type ParserServices = ReturnType<typeof ESLintUtils.getParserServices>;
4
5
  export interface TypeAwareRuleContext {
5
6
  readonly checker: ts.TypeChecker;
6
- readonly esTreeNodeToTSNodeMap: ParserServices['esTreeNodeToTSNodeMap'];
7
+ readonly esTreeNodeToTSNodeMap: NodeMap;
7
8
  readonly parserServices: ParserServices;
8
9
  readonly program: TSESTree.Program;
9
10
  readonly sourceCode: Readonly<TSESLint.SourceCode>;
10
- readonly tsNodeToESTreeNodeMap: ParserServices['tsNodeToESTreeNodeMap'];
11
+ readonly tsNodeToESTreeNodeMap: TsNodeToESTreeNodeMap;
11
12
  readonly tsProgram: ts.Program;
12
13
  }
13
14
  export declare function getTypeAwareRuleContext<MessageId extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageId, Options>>): TypeAwareRuleContext;