example_config.js 818 B

1234567891011121314151617181920212223242526272829303132
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. const config = {
  6. comment: ' A comment',
  7. condition: (option, validOption) => true,
  8. deprecate: (config, option, deprecatedOptions, options) => false,
  9. deprecatedConfig: {
  10. key: config => {}
  11. },
  12. error: (option, received, defaultValue, options) => {},
  13. exampleConfig: { key: 'value', test: 'case' },
  14. title: {
  15. deprecation: 'Deprecation Warning',
  16. error: 'Validation Error',
  17. warning: 'Validation Warning'
  18. },
  19. unknown: (config, option, options) => {}
  20. }; /**
  21. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  22. *
  23. * This source code is licensed under the MIT license found in the
  24. * LICENSE file in the root directory of this source tree.
  25. *
  26. *
  27. */
  28. exports.default = config;