Forbid imports from nested directories of flipper-common, flipper-plugin, flipper-ui-core
Summary: Forbid imports from nested directories of flipper-common, flipper-plugin, flipper-ui-core In the stack of D32926830 I occasionally imported from flipper-plugin/src/... which is not allowed. This should fix any auto-import related issues once and for all. Reviewed By: timur-valiev Differential Revision: D32987054 fbshipit-source-id: f19f6278219961ad283cacfec094a6c703ca93f8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9436c32ce9
commit
adb2573a1f
12
desktop/eslint-rules/no-restricted-imports-clone.js
Normal file
12
desktop/eslint-rules/no-restricted-imports-clone.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
// https://github.com/eslint/eslint/issues/14061#issuecomment-772490154
|
||||
const eslint = require('eslint');
|
||||
module.exports = new eslint.Linter().getRules().get('no-restricted-imports');
|
||||
Reference in New Issue
Block a user