Skip to content

Commit 3b01f03

Browse files
committed
Mark effect list fields as old
And `subtreeTag` as new. I didn't mark `lastEffect` because that name is also used by the Hook type. Not super important; could rename to `lastEffect_old` but idk if it's worth the effort.
1 parent f377714 commit 3b01f03

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.eslintrc.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,18 @@ module.exports = {
9999
'react-internal/warning-args': ERROR,
100100
'react-internal/no-production-logging': ERROR,
101101
'react-internal/no-cross-fork-imports': ERROR,
102-
'react-internal/no-cross-fork-types': ERROR,
102+
'react-internal/no-cross-fork-types': [
103+
ERROR,
104+
{
105+
old: [
106+
'firstEffect',
107+
'nextEffect',
108+
// Disabled because it's also used by the Hook type.
109+
// 'lastEffect',
110+
],
111+
new: ['subtreeTag'],
112+
},
113+
],
103114
},
104115

105116
overrides: [

0 commit comments

Comments
 (0)