Take these two components I want an eslint rule to enforce the syntax of the first "Good" component whenever possible. Obviously this syntax is onl ...
Take these two components I want an eslint rule to enforce the syntax of the first "Good" component whenever possible. Obviously this syntax is onl ...
I am using TypeScript, and I have the following definition: Where I know for sure the relevant element is defined in the HTML file with contendId. ...
I'm trying to move a setup-helper file to ts definition, but I'm having the next error: Property 'domainName' does not exist on type 'Config' and i ...
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: ...
If I do the following in TypeScript, ESLint complains about the "no-unused-expession" rule: How can I make ESLint understand that this expression ( ...
I'm following along a course and the instructor doesn't have this error while my code is identical to his. I've got a utility function in the /utils f ...
Right now prettier is giving me this: Is there a way to configure either prettier or eslint to put a space after some of the blocks, so it is more ...
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 ...
I'd like to configure my ESLint to automatically style my JSX Elements. Basically it should convert this: to this I just can't seem to find the ...
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'm getting a JSDoc syntax error pointing to the first line of my JSDoc comment where it says /**. Not sure what else I need to fix. ...
I'm trying to use eslint with the preset style airBnB but I want to use arrow functions instead of normal functions. When I try to add anything to my ...
I have this function where I disabled eslint warning but I would like to improve the code. I understand that I should use promise.All(), but I am unsu ...
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've got a class definition that is too long for a single line. Prettier tries to wrap it but when it does it adds an indentation, which I think is co ...
When I try to set the property "files" in the ESLint Config file ".eslintrc.cjs" I get the following error from the EsLint VsCode Extension: ESLin ...
I have three config files: eslint-future-plugins.js eslint-current.js eslintrc.js I would like to use all of the plugins/rules in eslint-cu ...
I'm currently set up my project using ESLint and Prettier. I would like to know if there's a way to format this code... into this... Here's my ...
All of a sudden, VSCode ignores my semi-colon rule and whitespaces rule, but only enforces tabs and spacing when I save my Typescript files. I'm usin ...
I have a similar warning to this one, however I don't want the value it wants me to add in the dependency array, so should I suppress the warning? I ...