bozdoz
bozdoz
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
still weird
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
Think I resolved this with:
/// <reference types="npm:@types/node" />
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
this was working last commit though; I may just have to try to chanage things one by one
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
error: TS2503 [ERROR]: Cannot find namespace 'NodeJS'
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
now it's complaining about: declare var process: NodeJS.Process;
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
now it's complaining:
error: TS2318 [ERROR]: Cannot find global type 'Array'.
TS2552 [ERROR]: Cannot find name 'Boolean'. Did you mean 'GLboolean'?
TS2318 [ERROR]: Cannot find global type 'CallableFunction'.
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
if I do git checkout HEAD~1, my previous commit works fine
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
but deno check was working fine before
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
yes
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
@bartlomieju I've seen this a few times now, and I have no idea when/why it happens:
TS2304 [ERROR]: Cannot find name 'Date'.
This is happening now in deno check
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
Thanks for your help @bartlomieju !
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
I need it for testing, but deno lint complains with:
error[no-var]: var keyword is not allowed. --> /dev/typewritesomething/src/global.d.ts:5:1 | 5 | declare var process: NodeJS.Process | ^^^^^^^ docs: https://lint.deno.land/rules/no-var
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
^ And I'll just ignore them for linting
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
the declaration files are now a bit of a problem. I think I'm going to leave them as
declare var process: NodeJS.Process
declare var process: NodeJS.Process
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
not all test files
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
I only needed to add the @deno-types to one file
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
that seems to have worked
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
So why wouldn’t deno check work like tsc noEmit?
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
Yeah that seems to work. I can't seem to get jest types working, or any node types. I copiied over some of the tsconfig to deno.json, but it's not helping:
"lib": ["DOM"],
"types": ["jest", "node"]
"lib": ["DOM"],
"types": ["jest", "node"]
34 replies
DDeno
Created by bozdoz on 10/16/2024 in #help
What does deno lint do, if not type check?
Thanks, that helps!
34 replies