All Questions
109
questions
0
votes
0
answers
29
views
WebStorm jasmin unit tests shows ESLint error that 'describe', 'it' etc' are undefined but then shows the correct documentation
In WebStorm, it shows me an ESLint error for all unit test files, that describe, it, etc are undefined, but then shows the correct documentation under it.
There is nothing special in the .eslint file....
0
votes
0
answers
28
views
React ESLint: inconsistent save format on WebStorm
I'm not sure what is happening but using the WebStorm editor saving the file will sometimes correctly execute eslint --fix and sometimes format using its own rules.
This is an example of what I'm ...
0
votes
0
answers
144
views
Why are ESLint errors not highlighted in the code?
ESLint errors are displayed in the console, but nothing is highlighted in the code itself. I guess the problem may be that I switched to another device and did something wrong in the project.
My IDE - ...
0
votes
1
answer
317
views
WebStorm complains "SyntaxError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.cjs » @vue/eslint-config-typescript': ..."
In WebStorm, every ts file in my project shows the error:
SyntaxError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.cjs » @vue/eslint-config-typescript': Unexpected token '||='
...
2
votes
0
answers
171
views
How to make WebStorm Reformat Code according to ESLint?
I've recently set up a fresh Next.js App Router project with MUI, and I'm using WebStorm 2023.2.4 with the Visual Studio Code keymap for my development workflow. My issue lies in code formatting using ...
0
votes
1
answer
112
views
Any way to run an ESLint rule on whole project like Run Inspection by Name in WebStorm
"Run Inspection by Name" lets me run any code analysis rule in WebStorm and find all violators throughout the whole monorepo, but there doesn't seem to be any ESLint integration. Currently, ...
0
votes
0
answers
44
views
Relative imports of files from same folder are edited in WebStorm
Whenever I am working in my project and move around some files the imports are being changes in my html.
For example when I have a folder navigation in which I have 2 files, one of the files points to ...
9
votes
2
answers
3k
views
IntelliJ: Disable "TS80006: This may be converted to an async function."
In WebStorm, How can I disable the warning (aka. "quick-fix"):
TS80006: This may be converted to an async function.
By 'warning' I mean the function name is underlined, and I see the ...
0
votes
1
answer
163
views
WebStorm shows warnings for objects, types and directives in Angular, but they work correctly
WebStorm shows warnings for objects, types and directives in Angular Template Html, but they work correctly
In Angular within WebStorm, there are warnings being displayed for types and Angular ...
0
votes
1
answer
62
views
WebStorm Breaking Line with no indentation
Ok, so here's the deal: I'm coding with WebStorm, and using ESLint rules to write my code. One of these rules is that there should be no trailing spaces. Which means that if I break a line so two ...
6
votes
0
answers
154
views
WebStorm + ESLint auto-fix false positive errors on recompile
I have a pretty annoying problem with ESLint in WebStorm.
If I make changes to a .js file while leaving lint errors that can be automatically fixed by the lint fix, and then press Ctrl + S to save the ...
1
vote
0
answers
313
views
Problem with ESLint and WebStorm import/no-unresolved
I have a problem with import/no-unresolved in React project. Example fragment where I get error/warning:
import { ArrowForwardIosRounded as ArrowForwardIcon } from "@mui/icons-material";
...
2
votes
0
answers
2k
views
Prettier bracketSpacing not working at all
WebStorm.
prettier.config.js:
module.exports = {
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
printWidth: 80,
embeddedLanguageFormatting: 'auto',
jsxBracketSameLine: true,...
1
vote
1
answer
1k
views
ESLint and Prettier conflict in WebStorm
In my project we use both ESLint and Prettier for code and seems they conflict with each other.
Here is the Prettier configuration in .prettierrc file :
{
"endOfLine": "auto",
&...
3
votes
1
answer
1k
views
ESLint : Timeout on starting language service process in WebStorm
I'm having this error in WebStorm with React and TypeScript:
This is how my node environment is setup in WebStorm:
This is my ESLint configuration in WebStorm and TSLint is not working properly, it ...