mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Removes the `error-subclass-name` ESLint rule from `react-native/eslint-plugin`, and implements a new `require-extends-error` ESLint rule inside the React Native repository. This rule was only intended to be used for internal development of React Native. This will change `react-native/eslint-plugin` to no longer provide the `error-subclass-name` rule. NOTE: One behavior difference here is that I also implemented the desired behavior of checking classes that extend `Library.SomeError`. Changelog: [General][Removed] - `react-native/eslint-plugin` no longer provides the `error-subclass-name` rule. Reviewed By: lunaleaps Differential Revision: D39858882 fbshipit-source-id: 27b53216d77a15b3425bd9669dbc9d954c1c61da
13 lines
278 B
JavaScript
13 lines
278 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.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
exports.rules = {
|
|
'platform-colors': require('./platform-colors'),
|
|
};
|