Deprecate imports from 'flipper'
Summary: It is quite easy to miss some flipper imports, this lint rule makes them more visible. In the future we can eventually turn this into an error. Reviewed By: jknoxville Differential Revision: D28027118 fbshipit-source-id: 817b356634cb78b11b9216ce45429ea7a22f0e4f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d26ea5fa46
commit
d8ecab6995
@@ -76,6 +76,14 @@ module.exports = {
|
||||
property: 'remote',
|
||||
},
|
||||
],
|
||||
'no-restricted-imports': [
|
||||
1,
|
||||
{
|
||||
name: 'flipper',
|
||||
message:
|
||||
"Direct imports from 'flipper' are deprecated. Import from 'flipper-plugin' instead, which can be tested and distributed stand-alone. See https://fbflipper.com/docs/extending/sandy-migration for more details.",
|
||||
},
|
||||
],
|
||||
|
||||
// additional rules for this project
|
||||
'header/header': [2, 'block', {pattern}],
|
||||
|
||||
Reference in New Issue
Block a user