title: Prettier vscode json file indentation spacing issue
body: <p>On save of any file, it is indenting with two tabs i.e 4 space in the beginning. Which rule is conflicting with <code>prettier</code> and <code>.vscode</code> settings?</p>
  <p><strong>Editor config settings are below:</strong></p>
  <pre><code>root = true
  
  [*]
  charset = utf-8
  end_of_line = lf
  insert_final_newline = true
  indent_style = space
  indent_size = 2
  trim_trailing_whitespace = true
  max_line_length = 120
  </code></pre>
  <p><a href="https://i.stack.imgur.com/pLK0t.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pLK0t.gif" alt="enter image description here" /></a></p>
  <p>Trying to indent with 2 space, this is happening only<br />
  with json files and other scripts.</p>
  <p><a href="https://i.stack.imgur.com/eBNky.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eBNky.png" alt="enter image description here" /></a></p>
  <p><strong>vscode settings</strong></p>
  <pre><code>{
    &quot;[javascript]&quot;: {
      &quot;editor.formatOnSave&quot;: false
    },
    &quot;eslint.alwaysShowStatus&quot;: true,
    &quot;files.autoSave&quot;: &quot;onFocusChange&quot;,
    &quot;prettier.proseWrap&quot;: &quot;preserve&quot;,
    &quot;emmet.includeLanguages&quot;: {
      &quot;javascript&quot;: &quot;javascriptreact&quot;,
      &quot;vue-html&quot;: &quot;html&quot;,
      &quot;plaintext&quot;: &quot;jade&quot;,
      &quot;edge&quot;: &quot;html&quot;
    },
    &quot;emmet.syntaxProfiles&quot;: {
      &quot;javascript&quot;: &quot;jsx&quot;
    },
    &quot;emmet.triggerExpansionOnTab&quot;: true,
    &quot;emmet.showSuggestionsAsSnippets&quot;: true,
    &quot;files.associations&quot;: {
      &quot;*.js&quot;: &quot;javascriptreact&quot;
    },
    &quot;editor.fontSize&quot;: 14,
    &quot;git.enableSmartCommit&quot;: true,
    &quot;git.confirmSync&quot;: false,
    &quot;search.exclude&quot;: {
      &quot;**/__snapshots__/**&quot;: true,
      &quot;**/.bin&quot;: true,
      &quot;**/.git&quot;: true,
      &quot;**/.next&quot;: true,
      &quot;**/bower_components&quot;: true,
      &quot;**/coverage/**&quot;: true,
      &quot;**/node_modules&quot;: false,
      &quot;**/node_modules/**&quot;: true,
      &quot;**/report/**&quot;: true,
      &quot;**/tmp&quot;: true
    },
    &quot;javascript.updateImportsOnFileMove.enabled&quot;: &quot;always&quot;,
    &quot;explorer.confirmDragAndDrop&quot;: false,
    &quot;explorer.confirmDelete&quot;: false,
    &quot;workbench.editor.enablePreviewFromQuickOpen&quot;: false,
    &quot;files.exclude&quot;: {
      &quot;.next&quot;: true,
      &quot;*.log&quot;: true,
      &quot;**/__pycache__&quot;: true,
      &quot;**/o&quot;: true,
      &quot;dist&quot;: true,
      &quot;geckodriver.log&quot;: true,
      &quot;node_modules/&quot;: true,
      &quot;package-lock.json&quot;: true,
      &quot;yarn.lock&quot;: true
    },
    &quot;window.zoomLevel&quot;: 1,
    &quot;editor.find.globalFindClipboard&quot;: true,
    &quot;editor.fontLigatures&quot;: true,
    &quot;jshint.enable&quot;: false,
    &quot;editor.formatOnType&quot;: true,
    &quot;team.showWelcomeMessage&quot;: false,
    &quot;git.autofetch&quot;: true,
    &quot;workbench.startupEditor&quot;: &quot;newUntitledFile&quot;,
    &quot;editor.codeActionsOnSave&quot;: {
      // For ESLint
      &quot;source.fixAll.eslint&quot;: true,
      // For TSLint
      &quot;source.fixAll.tslint&quot;: true,
      // For Stylelint
      &quot;source.fixAll.stylelint&quot;: true
    },
    &quot;launch&quot;: {},
    &quot;workbench.colorCustomizations&quot;: {},
    &quot;sync.forceUpload&quot;: true,
    &quot;sync.forceDownload&quot;: true,
    &quot;sync.autoDownload&quot;: true,
    &quot;vetur.format.defaultFormatter.html&quot;: &quot;js-beautify-html&quot;,
    &quot;intelephense.diagnostics.undefinedTypes&quot;: false,
    &quot;workbench.editorAssociations&quot;: [],
    &quot;diffEditor.codeLens&quot;: true,
    &quot;editor.formatOnSave&quot;: true,
    &quot;team.showFarewellMessage&quot;: false,
    &quot;eslint.validate&quot;: [],
    &quot;vetur.validation.template&quot;: false,
    &quot;prettier.enable&quot;: true,
    &quot;editor.formatOnPaste&quot;: true,
    &quot;editor.tabSize&quot;: 2,
    &quot;files.insertFinalNewline&quot;: true,
    &quot;[json]&quot;: {
      &quot;editor.defaultFormatter&quot;: &quot;esbenp.prettier-vscode&quot;,
      &quot;editor.tabSize&quot;: 2
    },
    &quot;[jsonc]&quot;: {
      &quot;editor.defaultFormatter&quot;: &quot;esbenp.prettier-vscode&quot;,
      &quot;editor.tabSize&quot;: 2
    },
    &quot;editor.tokenColorCustomizations&quot;: null
  }
  </code></pre>