I’m sure this has been asked before, but I can’t for the life of me find any forum posts or official documentation on configuration of the linter.
I recall there exists a config file but I can’t seem to find any documentation on this either.
Could somebody point me in the right direction?
I want to suppress these warnings:
In the use of type constructor or class ‘Monad’
(imported from Prelude, but defined in DA.Internal.Compatible):
Deprecated: "Daml compatibility helper, use 'Action' instead of 'Monad'"
Note that the error above is a deprecation warning not a DLint hint so the linked post does not apply. You can disable the warning here but only at the level of the full file not more granular. To do so, add the following to the top of your file:
You can find examples of valid syntax in the default .dlint.yaml generated as part of most daml templates:
$ daml new t
Created a new project in "t" based on the template "skeleton".
$ cat t/.dlint.yaml
# This file controls the behaviour of the dlint linting tool. Below are two
# examples of how to enable or disable a rule.
# This rule is enabled by default. Uncomment to disable.
#- ignore: {name: Use fewer imports}
# This rule is disabled by default. Uncomment to enable.
#- suggest: {name: Use module export list}
$