Summary: When trying to refactor some components, did once again run into circular imports that cause the flipper startup sequence to fail. Added linting rules to make sure this is much less likely to happen in the future, and fixed all resulting errors Reviewed By: nikoant Differential Revision: D24390583 fbshipit-source-id: 9b20cf6a4d3555dc68f0069c2950dd7162b17e67
22 lines
460 B
JavaScript
22 lines
460 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
module.exports = {
|
|
rules: {
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
// These paths lead to circular import issues in Flipper app and are forbidden
|
|
paths: ['flipper'],
|
|
patterns: ['app/src/*'],
|
|
},
|
|
],
|
|
},
|
|
};
|