denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
96.84k stars 5.35k forks source link

`deno fmt` might not respects include/exclude options in workspace settings #26519

Open bartlomieju opened 3 hours ago

bartlomieju commented 3 hours ago

This is also a bug with deno fmt. I have a workspace setup where I have this fmt config:


  "fmt": {

    "include": ["*.ts", "*.tsx"],

    "exclude": ["*.d.ts", "./server/*"],

    "lineWidth": 120

  },

This still tries to process JS, CSS and even JSON files. However, when I also exclude the directory which contains those files (my Next JS build directory), it works fine. The include statement just shouldn't work with those files to begin with.

Originally posted by @dmint789 in #26308

bartlomieju commented 3 hours ago

@dmint789 could you provide more info here? Do you have a workspace in your project? Is it open source and you could link a repo?