1. /**
    
  2.  * Copyright (c) Meta Platforms, Inc. and affiliates.
    
  3.  *
    
  4.  * This source code is licensed under the MIT license found in the
    
  5.  * LICENSE file in the root directory of this source tree.
    
  6.  */
    
  7. 
    
  8. 'use strict';
    
  9. 
    
  10. import RulesOfHooks from './RulesOfHooks';
    
  11. import ExhaustiveDeps from './ExhaustiveDeps';
    
  12. 
    
  13. export const configs = {
    
  14.   recommended: {
    
  15.     plugins: ['react-hooks'],
    
  16.     rules: {
    
  17.       'react-hooks/rules-of-hooks': 'error',
    
  18.       'react-hooks/exhaustive-deps': 'warn',
    
  19.     },
    
  20.   },
    
  21. };
    
  22. 
    
  23. export const rules = {
    
  24.   'rules-of-hooks': RulesOfHooks,
    
  25.   'exhaustive-deps': ExhaustiveDeps,
    
  26. };