<p dir="auto">Hello!</p>
<p dir="auto">Currently when running <code class="notranslate">deno lint --unstable</code> I get some issues with <code class="notranslate">no-inferrable-types</code> on fields that I'm actually <strong>declaring</strong> the type and <strong>then assigning a value</strong>.</p>
<p dir="auto">For instance the following snippet causes the output from deno lint:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export function createString(
  prefix: string = &quot;&quot;,
  params: GeneratorParameters = defaultParameters,
): string {
  if (!validateGeneratorParameters(params)) {
    throw new Error(`The parameters ${params} aren't valid`);
  }

  const suffix = generateRandomNumber(params).toString();
  return prefix !== &quot;&quot; ? prefix + suffix : suffix;
}"><pre class="notranslate"><code class="notranslate">export function createString(
  prefix: string = "",
  params: GeneratorParameters = defaultParameters,
): string {
  if (!validateGeneratorParameters(params)) {
    throw new Error(`The parameters ${params} aren't valid`);
  }

  const suffix = generateRandomNumber(params).toString();
  return prefix !== "" ? prefix + suffix : suffix;
}
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(no-inferrable-types) inferrable types are not allowed
  prefix: string = &quot;&quot;,
  ^^^^^^^^^^^^^^^^^^^
    at E:\Src\dixture\src\_simpleGenerator.ts:45:2"><pre class="notranslate"><code class="notranslate">(no-inferrable-types) inferrable types are not allowed
  prefix: string = "",
  ^^^^^^^^^^^^^^^^^^^
    at E:\Src\dixture\src\_simpleGenerator.ts:45:2
</code></pre></div>
<p dir="auto">Even tho the <code class="notranslate">lint</code> option is flagged as <code class="notranslate">unstable</code> I was unable to find this reported elsewhere so hopefully this is just a duplicate and this is a know issue <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji></p>
<p dir="auto">You can find the failing snippet on <a href="https://github.com/rodolphocastro/dixture/blob/60ef43d1d98f66d5d95f8411fae6b9284da73936/src/_simpleGenerator.ts#L62">this GitHub repository</a>, just nevermind the <code class="notranslate">no-explicit-any</code> (as those are intended by me right now <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji>)</p>
<p dir="auto">Dunno if this makes sense in a Deno context, but I've seen people do things like</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {version} from '../package.json'"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">version</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../package.json'</span></pre></div>
<p dir="auto">but this fails:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: An unsupported media type was attempted to be imported as a module.
  Specifier: https://raw.githubusercontent.com/wrnrlr/as-bind/master/package.json
  MediaType: Json"><pre class="notranslate"><code class="notranslate">error: An unsupported media type was attempted to be imported as a module.
  Specifier: https://raw.githubusercontent.com/wrnrlr/as-bind/master/package.json
  MediaType: Json
</code></pre></div>
<p dir="auto">Same failure when importing local copy of same code.</p>