example_config.js 839 B

1234567891011121314151617181920212223242526272829303132333435
  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. recursive: true,
  15. recursiveBlacklist: [],
  16. title: {
  17. deprecation: 'Deprecation Warning',
  18. error: 'Validation Error',
  19. warning: 'Validation Warning'
  20. },
  21. unknown: (config, option, options) => {}
  22. };
  23. /**
  24. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  25. *
  26. * This source code is licensed under the MIT license found in the
  27. * LICENSE file in the root directory of this source tree.
  28. *
  29. *
  30. */
  31. exports.default = config;