example_config.js 1.1 KB

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