-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First pass at config file #11686
Comments
Just to comment that I have no objections to this. The auto discovery is going to be slightly problematic for the language server, especially with multi root workspaces like vscode supports. |
Here's an an example config file from {
"rules": {
"tags": ["recommended"],
"include": [
"ban-untagged-todo"
],
"exclude": [
"no-explicit-any"
]
},
"files": {
"include": [
"benchmarks/oak/**/*.ts"
],
"exclude": []
}
} It's heavily based on what Additionally if we are to add config for |
Using the current working directory doesn't sound right to me. I'd expect it to look for
Just to be clear, in future will the Also, in future we'll need a way to tell Deno not to load any config files at all – either via something like Personally, I think it's better to always require the user to specify a configuration file with the Nevertheless, I can understand the appeal of loading If you haven't already, I encourage you to take a broader look at how other projects have handled the pros and cons of automatic config loading (beyond just the JS ecosystem), to arrive at a well-considered solution with the right set of limits and trade-offs for Deno. |
I agree with @kitsonk and @SpadeAceman for the problematics it may introduce. Just want to recall one design principle of Deno https://deno.land/[email protected]/typescript/types#types-and-type-declarations That should be adopted everywhere in the code. Just saying 😄 |
Part of #3179
Deno.json
in the current working directory on startup.Deno.json
can also be specified by the already existing--config
flagDeno.json
can have a top-level"compilerOptions"
for configuring typescript."lint"
which will allow people to configure howdeno lint
works. Example:The text was updated successfully, but these errors were encountered: