mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6611c4b8f4
Summary: Ports an internal ESLint rule used at Facebook, `error-subclass-name`, to cover the React Native codebase. This rule enforces that error classes ( = those with PascalCase names ending with `Error`) only extend other error classes, and that regular functions don't have names that could be mistaken for those of error classes. Reviewed By: rubennorte Differential Revision: D17829298 fbshipit-source-id: 834e457343034a0897ab394b6a2d941789953d2e
14 lines
337 B
JavaScript
14 lines
337 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
|
|
*/
|
|
|
|
exports.rules = {
|
|
'error-subclass-name': require('./error-subclass-name'),
|
|
'no-haste-imports': require('./no-haste-imports'),
|
|
};
|