the intent is not to make autofmt a tool like dprint or treefmt, but still a tool that can format any file correctly. this messed up fish's workflow when a formatter was used on package.json on a repo that only uses prettier to format js files. while i think the repo is wrong for this and prettier --write . would format the file, autofmt should be configurable.
the issue is some projects do not format their files at all. we should add these configuration options:
reset do not inherit configincludeAmbiguousInRepos change the default behavior of autofmt to not pick a default formatter, and defaulting this to falsedisabledLanguages array of language names to disable formatting ondisabledExtensions array of extensions to disable formatting ondisabledFiles array of relative glob patterns to disable formatting onwhen autofmt looks to format a file, it should read all .autofmt configurations in all parent directories, including past git boundaries, until it reaches one with reset
oh, additionally, formatters should probably be able to specify exclude patterns, like .prettierignore to add more ways to disqualify a file.