Avoid using electron directly for writing to clipboard
Summary: Similarly to previous stack, remove the need to import Electron to write things to clipboard. Introduced linter to prevent future use. Reviewed By: timur-valiev Differential Revision: D29661777 fbshipit-source-id: 7bc67ede40b65c5f232b69128f3a423e232ddc1b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5dbd3bd414
commit
9b9f5d15a1
@@ -86,6 +86,11 @@ module.exports = {
|
||||
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.",
|
||||
},
|
||||
{
|
||||
name: 'electron',
|
||||
message:
|
||||
"Direct imports from 'electron' are deprecated. Most functions can be found in getFlipperLib() from flipper-plugin package instead.",
|
||||
},
|
||||
],
|
||||
|
||||
// additional rules for this project
|
||||
|
||||
Reference in New Issue
Block a user