Trying to write a simple test following this guide https://medium.com/swlh/how-to-setting-up-unit-tests-with-typescript-871c0f4f1609 but I get TS6196: ...
Trying to write a simple test following this guide https://medium.com/swlh/how-to-setting-up-unit-tests-with-typescript-871c0f4f1609 but I get TS6196: ...
I'm having mix codebase of Typescript and Javascript with monorepo configuration with Lerna in create-react-app. I'm importing TS files in my JS files ...
Let's say I want id to be a string that also matches a Regex, for example /^[A-Z]_[0-9]{4}$/. As far as I know Typescript doesn't allow you to use ...
I added localization to my angular 15 project (which works). But linting now is broken for .ts files: error '$localize' is not defined no-undef ...
I want to define a type in TypeScript, which among other keys has the key "description". The key should not be optional, the associated value should b ...
Prerequisites: I have a variable, that I always just pass through and never manipulate or compare inside my app. (It comes from the server in one API ...
I would like to be able to solve this problem without having to disable estlint. And I would like to understand the reason for the error ...
the react-scripts package provided by create react app requires a dependency eslint ^5.6.0. it says that another version was detected higher up in the ...
<button onClick={() => signIn()}>Login</button> is giving the following @typescript-eslint/no-misused-promises error in VS Code: Promis ...
How do you turn off an eslint rule, for example no-inferrable-types which comes from the extension "eslint:recommended"? For example if my .eslintrc. ...
I am struggling to disable a rule for one line of code. I have this line of code: And my eslint --fix removes the type as it can be inferred. The ...
Something in my react app is preventing me from push to github. The error message when I try says: ✖ eslint --fix --config .eslintrc.commit.js fa ...
I am using nest js as my backend and i get this type annotation error often. I am unable to solve this error. The file extension by default is .ts fil ...
When using eslint's "restrict template expressions", how do you log a boolean variable? Also, if I wanted to disable the restriction for a line, how t ...
I have this method: there are multiple return statements in the function body, and I want to avoid null/undefined return statements. Is there an an ...
Building a command line blackjack app with Node and Typescript, but I'm new to Typescript. I have interfaces set up for player and dealer objects and ...
We recently updated Angular to version 14 and all dependent packages to the most recent versions. After the update, we are receiving an eslint error s ...
I have installed eslint with typescript using npm init @eslint/config then added a lint script to my package.json but when I run the npm script lint ( ...
I am getting the below error while running the Lint test in NextJS project. Earlier the lint test was working fine. Later, I updated the dependenci ...
I'm trying to assert the parameters my payment confirmation submission function is called with, but getting a type error on confirmPaymentMock.mock.ca ...