how to configure deno lint with additional rules + options
Specifically I'd like to restrict some imports - is that possible with deno lint?
deno lint using a configuration file. However, there is no explicit mention of a rule that restricts certain imports. deno lint with additional rules and options:deno.json or deno.jsonc configuration file in your project root.exclude property is used to exclude certain rules. The property is used to specify which files or directories to include or exclude from linting.deno lint to throw an error when an unwanted import is used. lintincluderulesrecommendedfiles{
"lint": {
"files": {
"include": ["src/"],
"exclude": ["src/testdata/"]
},
"rules": {
"tags": ["recommended"],
"include": ["ban-untagged-todo"],
"exclude": ["no-unused-vars"]
}
}
}