Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Overriding .json files not working #38

Closed
ahmedelgabri opened this issue Oct 24, 2021 · 1 comment
Closed

Overriding .json files not working #38

ahmedelgabri opened this issue Oct 24, 2021 · 1 comment

Comments

@ahmedelgabri
Copy link

I'm trying to override tsconfig.json to be jsonc & that's not working, I tried with multiple .json files & all of them are the same result. It's always set to json

require('filetype').setup {
  overrides = {
    extensions = {
      nix = 'nix',
      res = 'rescript',
    },
    literal = {
      ['.stylelintrc'] = 'json',
      ['.envrc'] = 'bash',
      ['tsconfig.json'] = 'jsonc',  -- this is not working.
    },
    complex = {
      ['tsconfig.*'] = 'jsonc',  -- this is not working.
    },
  },
}
@aspeddro aspeddro mentioned this issue Oct 25, 2021
@nathom
Copy link
Owner

nathom commented Nov 5, 2021

Fixed in latest version.

@nathom nathom closed this as completed Nov 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants