code: function createQuestions(config) {
    const choices = getEmojiChoices(config)
    const fuzzy = new fuse(choices, {
      shouldSort: true,
      threshold: 0.4,
      location: 0,
      distance: 100,
      maxPatternLength: 32,
      minMatchCharLength: 1,
      keys: ["name", "code"]
  })
  
    return [
      {
        type: 'autocomplete',
        name: 'type',
        message: "Select the type of change you're committing:",
        source: (answersSoFar, query) => {
          return Promise.resolve(query ? fuzzy.search(query) : choices)
        }
      },
      {
        type: config.scopes ? 'list' : 'input',
        name: 'scope',
        message: 'Specify a scope:',
        choices: config.scopes && [{ name: '[none]', value: '' }].concat(config.scopes)
      },
      {
        type: 'input',
        name: 'subject',
        message: 'Write a short description:'
      },
      {
        type: 'input',
        name: 'issues',
        message: 'List any issue closed (#1, ...):'
      },
      {
        type: 'input',
        name: 'body',
        message: 'Provide a longer description:'
      }
    ]
  }
docs: Create inquier.js questions object trying to read `types` and `scopes` from the current project
  `package.json` falling back to nice default :)
  
  @param {Object} config Result of the `loadConfig` returned promise
  @return {Array} Return an array of `inquier.js` questions
  @private