Make sure antd is used from Flipper

Summary: Fix build job that didn't include require rewrites for antd

Reviewed By: timur-valiev

Differential Revision: D26311554

fbshipit-source-id: 473a9c7d343e4534a33e5938ea27667f7795d8ac
This commit is contained in:
Michel Weststrate
2021-02-08 04:14:47 -08:00
committed by Facebook GitHub Bot
parent 949b57b473
commit 9987c8ee89
3 changed files with 15 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ const fbjs = require('eslint-config-fbjs');
// enforces copy-right header and @format directive to be present in every file
const pattern = /^\*\r?\n[\S\s]*Facebook[\S\s]* \* @format\r?\n/;
// This list should match the replacements defined in `replace-flipper-requires.ts` and `dispatcher/plugins.tsx`
const builtInModules = [
'fb-qpl-xplat',
'flipper',
@@ -24,6 +25,7 @@ const builtInModules = [
'antd',
'immer',
'@emotion/styled',
'@ant-design/icons',
];
const prettierConfig = require('./.prettierrc.json');