Closed JakobLichterfeld closed 2 months ago
During execution of examples.sh
a new warning is added:
trace: evaluation warning: getExe: Package "dart-3.5.1" does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when the assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control its definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar".
But
meta = {
mainProgram = "dart";
};
results in error: The option 'meta.mainProgram' does not exist.
As a user I do want to lint my dart code with treefmt multiplexer as well.
dart format
follows the formatter-specUsing the
treefmt.toml
configuration works:As i struggled with the config (see https://github.com/numtide/treefmt/issues/410) I would like to add it to the examples