Configure eslint to prevent imports from nested paths of externally provided modules
Summary: We have a list of modules that we do not bundle with the plugins, but provide externally to them from Flipper. For the mechanism to work correctly, we have to stop importing from nested paths of these modules. Reviewed By: mweststrate Differential Revision: D39776237 fbshipit-source-id: 06eae9bf9d5b11b48d2720bf592bfea749773847
This commit is contained in:
committed by
Facebook GitHub Bot
parent
982193df48
commit
d1158e2d02
@@ -8,8 +8,7 @@
|
||||
*/
|
||||
|
||||
import {Id, UINode} from '../types';
|
||||
import {DataNode} from 'antd/es/tree';
|
||||
import {Tree as AntTree} from 'antd';
|
||||
import {Tree as AntTree, TreeDataNode} from 'antd';
|
||||
import {DownOutlined} from '@ant-design/icons';
|
||||
import React from 'react';
|
||||
|
||||
@@ -56,10 +55,13 @@ export function Tree(props: {
|
||||
);
|
||||
}
|
||||
|
||||
function nodesToAntTree(root: Id, nodes: Map<Id, UINode>): [DataNode, Id[]] {
|
||||
function nodesToAntTree(
|
||||
root: Id,
|
||||
nodes: Map<Id, UINode>,
|
||||
): [TreeDataNode, Id[]] {
|
||||
const inactive: Id[] = [];
|
||||
|
||||
function uiNodeToAntNode(id: Id): DataNode {
|
||||
function uiNodeToAntNode(id: Id): TreeDataNode {
|
||||
const node = nodes.get(id);
|
||||
|
||||
if (node?.activeChild) {
|
||||
|
||||
Reference in New Issue
Block a user