Merge pull request #5033 from dimaMachina/no-deprecated
lint: use `React.JSX` type instead of the deprecated global `JSX` namespace
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
lint: use `React.JSX` type instead of the deprecated global `JSX` namespace
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useState, useMemo, useRef, type KeyboardEvent, useCallback } from 'react';
|
import { useState, useMemo, useRef, type KeyboardEvent, useCallback, JSX } from 'react';
|
||||||
import cc from 'classcat';
|
import cc from 'classcat';
|
||||||
import { shallow } from 'zustand/shallow';
|
import { shallow } from 'zustand/shallow';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { type Ref, type RefAttributes, forwardRef } from 'react';
|
import { type Ref, type RefAttributes, forwardRef, JSX } from 'react';
|
||||||
import { isNodeBase, isEdgeBase } from '@xyflow/system';
|
import { isNodeBase, isEdgeBase } from '@xyflow/system';
|
||||||
|
|
||||||
import type { Edge, Node } from '../types';
|
import type { Edge, Node } from '../types';
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ module.exports = {
|
|||||||
projectService: true,
|
projectService: true,
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
'@typescript-eslint/no-deprecated': 'error',
|
||||||
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user