mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51858 Creates a new private package for the ESLint rules that are defined in the `facebook/react-native` repository for linting the monorepo itself: `react-native/eslint-plugin-monorepo` It resides in a new `private/` directory that will be used for all private packages. I plan to move private packages over from `packages/` and `tools/`. This also eliminates the need for the `eslint-plugin-lint` dependency in open source. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D76088698 fbshipit-source-id: 697d5d91421cda4ef3f96d0497a96954cd047296
23 lines
926 B
JavaScript
23 lines
926 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
|
|
exports.rules = {
|
|
'no-commonjs-exports': require('./rules/no-commonjs-exports'),
|
|
'no-haste-imports': require('./rules/no-haste-imports'),
|
|
'no-react-default-imports': require('./rules/no-react-default-imports'),
|
|
'no-react-named-type-imports': require('./rules/no-react-named-type-imports'),
|
|
'no-react-native-imports': require('./rules/no-react-native-imports'),
|
|
'no-react-node-imports': require('./rules/no-react-node-imports'),
|
|
'react-native-manifest': require('./rules/react-native-manifest'),
|
|
'require-extends-error': require('./rules/require-extends-error'),
|
|
'sort-imports': require('./rules/sort-imports'),
|
|
'valid-flow-typed-signature': require('./rules/valid-flow-typed-signature'),
|
|
};
|